diff options
author | Pim van den Berg | 2011-10-08 11:29:11 +0200 |
---|---|---|
committer | Pim van den Berg | 2011-10-08 11:29:11 +0200 |
commit | a652177a65cc17c8dddaa739d30ce40dc20d68a9 (patch) | |
tree | e7b7dd3b4ef84460b398ec5abc5886a78ffeeac6 /inc/collectd.inc.php | |
parent | plugin/interface: fix empty instance descr. for collectd 5 (diff) | |
download | apt-panopticon_cgp-a652177a65cc17c8dddaa739d30ce40dc20d68a9.zip apt-panopticon_cgp-a652177a65cc17c8dddaa739d30ce40dc20d68a9.tar.gz apt-panopticon_cgp-a652177a65cc17c8dddaa739d30ce40dc20d68a9.tar.bz2 apt-panopticon_cgp-a652177a65cc17c8dddaa739d30ce40dc20d68a9.tar.xz |
include trailing slash in config weburl variable
When running CGP in the root, the header didn't link to the overview page
because the href was empty.
Reported-by: Nikoli <Nikoli@lavabit.com>
Diffstat (limited to 'inc/collectd.inc.php')
-rw-r--r-- | inc/collectd.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 11dc91f..439d507 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php | |||
@@ -133,7 +133,7 @@ function graphs_from_plugin($host, $plugin) { | |||
133 | ? $CONFIG['time_range'][$plugin] | 133 | ? $CONFIG['time_range'][$plugin] |
134 | : $CONFIG['time_range']['default']; | 134 | : $CONFIG['time_range']['default']; |
135 | 135 | ||
136 | printf('<a href="%s/%s"><img src="%s/%s"></a>'."\n", | 136 | printf('<a href="%s%s"><img src="%s%s"></a>'."\n", |
137 | $CONFIG['weburl'], | 137 | $CONFIG['weburl'], |
138 | build_url('detail.php', $items, $time), | 138 | build_url('detail.php', $items, $time), |
139 | $CONFIG['weburl'], | 139 | $CONFIG['weburl'], |