diff --git a/includes/functions.php b/includes/functions.php index c239298e3d..aa3c64bb40 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -884,11 +884,6 @@ function send_mail($emails, $subject, $message, $html = false) return 'No contacts found'; } -function formatCiscoHardware(&$device, $short = false) -{ - return \LibreNMS\Util\Rewrite::ciscoHardware($device, $short); -} - function hex2str($hex) { $string = ''; diff --git a/includes/html/dev-overview-data.inc.php b/includes/html/dev-overview-data.inc.php index 9935b08397..8531bc52d9 100644 --- a/includes/html/dev-overview-data.inc.php +++ b/includes/html/dev-overview-data.inc.php @@ -13,7 +13,7 @@ echo "
if (Config::get('overview_show_sysDescr')) { echo ' '; - echo Config::get('overview_show_sysDescr', true) ? $device['sysDescr'] : 'System'; + echo Config::get('overview_show_sysDescr', true) ? display($device['sysDescr']) : 'System'; echo ''; } @@ -23,7 +23,7 @@ echo ''; echo ''; if ($device['os'] == 'ios' || $device['os'] == 'iosxe') { - formatCiscoHardware($device); + \LibreNMS\Util\Rewrite::ciscoHardware($device, false); } if ($device['features']) { @@ -34,7 +34,7 @@ $device['os_text'] = Config::getOsSetting($device['os'], 'text'); echo '
System Name
-
' . $device['sysName'] . '
+
' . display($device['sysName']) . '
'; if (! empty($device['overwrite_ip'])) { @@ -60,26 +60,26 @@ if ($device['purpose']) { if ($device['hardware']) { echo '
Hardware
-
' . $device['hardware'] . '
+
' . display($device['hardware']) . '
'; } echo '
Operating System
-
' . $device['os_text'] . ' ' . $device['version'] . ' ' . $device['features'] . '
+
' . display($device['os_text'] . ' ' . $device['version'] . ' ' . $device['features']) . '
'; if ($device['serial']) { echo '
Serial
-
' . $device['serial'] . '
+
' . display($device['serial']) . '
'; } if ($device['sysObjectID']) { echo '
Object ID
-
' . $device['sysObjectID'] . '
+
' . display($device['sysObjectID']) . '
'; } @@ -88,14 +88,14 @@ if ($device['sysContact']) {
Contact
'; if (get_dev_attrib($device, 'override_sysContact_bool')) { echo ' -
' . htmlspecialchars(get_dev_attrib($device, 'override_sysContact_string')) . '
+
' . display(htmlspecialchars(get_dev_attrib($device, 'override_sysContact_string'))) . '
SNMP Contact
'; } echo ' -
' . htmlspecialchars($device['sysContact']) . '
+
' . display(htmlspecialchars($device['sysContact'])) . '
'; } @@ -129,7 +129,7 @@ if ($device['location_id']) { echo '
Location
-
' . $location->display() . '
+
' . display($location->display()) . '
Lat / Lng