Use "format_hostname" for graphs' default title (#10891)

This commit is contained in:
PipoCanaja
2019-11-29 16:20:18 +01:00
committed by GitHub
parent 823d93efda
commit 8c04da9689

View File

@@ -34,6 +34,9 @@ $graphfile = Config::get('temp_dir') . '/' . strgen();
require Config::get('install_dir') . "/includes/html/graphs/$type/auth.inc.php";
//set default graph title
$graph_title = format_hostname($device);
if ($auth && is_custom_graph($type, $subtype, $device)) {
include(Config::get('install_dir') . "/includes/html/graphs/custom.inc.php");
} elseif ($auth && is_mib_graph($type, $subtype)) {