webui: Updated remaining display options where we do not show sysName if hostname is IP (#6585)

* webui: Updated remaining display options where we do not show sysName if hostname is IP

* renamed function + simplified
This commit is contained in:
Neil Lathwood
2017-05-05 12:25:58 +01:00
committed by Tony Murray
parent 1135bb9146
commit 34c35f3627
17 changed files with 53 additions and 53 deletions

View File

@@ -264,7 +264,7 @@ function generate_device_link($device, $text = null, $vars = array(), $start = 0
$text = $device['hostname'];
}
$text = ip_to_sysname($device, $text);
$text = format_hostname($device, $text);
if (isset($config['os'][$device['os']]['over'])) {
$graphs = $config['os'][$device['os']]['over'];