Add note about duplicate code

This commit is contained in:
Paul Gear
2015-06-13 16:14:19 +10:00
parent 0cc75d7d1d
commit 7ca0c54703

View File

@ -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();