From 7ca0c547034fcf322f03d0a945ffbd0f25afd245 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sat, 13 Jun 2015 16:14:19 +1000 Subject: [PATCH] Add note about duplicate code --- html/includes/api_functions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index d4dce5e87..d2e9f3061 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -436,6 +436,7 @@ function get_graphs() { $router = $app->router()->getCurrentRoute()->getParams(); $hostname = $router['hostname']; + // FIXME: this has some overlap with html/pages/device/graphs.inc.php // use hostname as device_id if it's all digits $device_id = ctype_digit($hostname) ? $hostname : getidbyname($hostname); $graphs = array();