Need global $config to be able to access it.

This commit is contained in:
Tony Murray
2016-02-29 11:26:03 -06:00
parent 8400962130
commit ade3c81570

View File

@ -147,12 +147,12 @@ function interface_errors($rrd_file, $period = '-1d') {
}
function getImage($device) {
global $config;
return '<img src="' . getImageSrc($device) . '" />';
}
function getImageSrc($device) {
global $config;
return $config['base_url'] . '/images/os/' . getImageName($device) . '.png';
}