diff --git a/includes/functions.php b/includes/functions.php index dcaa363e2..a1540a48a 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -147,14 +147,13 @@ function interface_errors($rrd_file, $period = '-1d') { } function getImage($device) { - global $config; - return ''; } 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) {