diff options
author | Pim van den Berg | 2014-11-11 23:01:15 +0100 |
---|---|---|
committer | Pim van den Berg | 2014-11-11 23:01:15 +0100 |
commit | 82d88098f4203cf7402d4faf5ad100cada70efaf (patch) | |
tree | 0c7e63a0e91493837dad20a802529b3051bd670a /detail.php | |
parent | type/base: allow rrdtool graph -l (lower-limit) to be configured via config o... (diff) | |
download | apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.zip apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.gz apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.bz2 apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.xz |
make detail page accessible when using "canvas" graph_type
Closes #106
Diffstat (limited to 'detail.php')
-rw-r--r-- | detail.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -55,7 +55,9 @@ print "</ul>\n"; | |||
55 | 55 | ||
56 | if ($CONFIG['graph_type'] == 'canvas') { | 56 | if ($CONFIG['graph_type'] == 'canvas') { |
57 | chdir($CONFIG['webdir']); | 57 | chdir($CONFIG['webdir']); |
58 | printf('<canvas id="%s" class="rrd">', generate_uuid()); | ||
58 | include $CONFIG['webdir'].'/graph.php'; | 59 | include $CONFIG['webdir'].'/graph.php'; |
60 | print '</canvas>'; | ||
59 | } else { | 61 | } else { |
60 | printf("<img src=\"%s%s\">\n", | 62 | printf("<img src=\"%s%s\">\n", |
61 | htmlentities($CONFIG['weburl']), | 63 | htmlentities($CONFIG['weburl']), |