mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Need global $config to be able to access it.
This commit is contained in:
@ -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';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user