mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 00:18:03 +02:00
Merge pull request #3120 from murrant/fix-3118
Fix os images with subdirectories in url
This commit is contained in:
@@ -147,14 +147,13 @@ function interface_errors($rrd_file, $period = '-1d') {
|
||||
}
|
||||
|
||||
function getImage($device) {
|
||||
global $config;
|
||||
|
||||
return '<img src="' . getImageSrc($device) . '" />';
|
||||
}
|
||||
|
||||
function getImageSrc($device) {
|
||||
// is base_url needed?
|
||||
return '/images/os/' . getImageName($device) . '.png';
|
||||
global $config;
|
||||
|
||||
return $config['base_url'] . '/images/os/' . getImageName($device) . '.png';
|
||||
}
|
||||
|
||||
function getImageName($device, $use_database=true) {
|
||||
|
||||
Reference in New Issue
Block a user