Use Config helper (#10339)

remove usage of global variable
This commit is contained in:
Tony Murray
2019-06-23 00:29:12 -05:00
committed by GitHub
parent 342acf50f1
commit f3ba8947f7
367 changed files with 1589 additions and 1857 deletions

View File

@@ -78,7 +78,7 @@ if (isset($valid_wireless_types[$class])) {
$graph_type = 'wireless_' . $class;
$unit = $valid_wireless_types[$class]['unit'];
$pagetitle[] = "Wireless :: ".$class;
include $config['install_dir'] . '/includes/html/pages/wireless/sensors.inc.php';
include \LibreNMS\Config::get('install_dir') . '/includes/html/pages/wireless/sensors.inc.php';
} else {
echo("No sensors of type " . $class . " found.");
}