From e1a5dd0110234e47503aa186a9c6bdd65759afa8 Mon Sep 17 00:00:00 2001 From: Rosiak Date: Mon, 2 Mar 2015 18:32:36 +0100 Subject: [PATCH] Add ifAlias to graph view. - Small visual improvement --- html/includes/graphs/port/auth.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/includes/graphs/port/auth.inc.php b/html/includes/graphs/port/auth.inc.php index 74f3ef23c..a11959eb3 100644 --- a/html/includes/graphs/port/auth.inc.php +++ b/html/includes/graphs/port/auth.inc.php @@ -6,6 +6,9 @@ if (is_numeric($vars['id']) && ($auth || port_permitted($vars['id']))) $device = device_by_id_cache($port['device_id']); $title = generate_device_link($device); $title .= " :: Port ".generate_port_link($port); + if ($port['ifAlias']!='') { + $title .= ", ".$port['ifAlias']; + } $graph_title = shorthost($device['hostname']) . "::" . strtolower(makeshortif($port['ifDescr']));