From ade3c815705b491fca91dd4c24b5f2a7e2b2e1ae Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 29 Feb 2016 11:26:03 -0600 Subject: [PATCH] Need global $config to be able to access it. --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 191ca12ace..a1540a48a0 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -147,12 +147,12 @@ function interface_errors($rrd_file, $period = '-1d') { } function getImage($device) { - global $config; - return ''; } function getImageSrc($device) { + global $config; + return $config['base_url'] . '/images/os/' . getImageName($device) . '.png'; }