diff options
author | Tobias Oetiker <tobi@oetiker.ch> | 2012-07-13 09:34:59 +0200 |
---|---|---|
committer | Tobias Oetiker <tobi@oetiker.ch> | 2012-07-13 09:34:59 +0200 |
commit | 7e4c58744dc9f8b8656f88612fd58f54b7e522e4 (patch) | |
tree | 9a2867346b4d83f484b3fcec7393f3efdf1a2fcb | |
parent | c15e166eb9b2331348f7729c394e37a7e88c1870 (diff) | |
download | smokeping-7e4c58744dc9f8b8656f88612fd58f54b7e522e4.tar.gz smokeping-7e4c58744dc9f8b8656f88612fd58f54b7e522e4.tar.xz |
allow title to be defined via cgi parameter when calling navigator interface directly
-rw-r--r-- | lib/Smokeping.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 2d6e1e5..f9d162c 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -1156,7 +1156,8 @@ sub get_detail ($$$$;$){ $q->param('epoch_start',parse_datetime($q->param('start'))); $q->param('epoch_end',parse_datetime($q->param('end'))); - @tasks = (["Navigator Graph".$name, parse_datetime($q->param('start')),parse_datetime($q->param('end'))]); + my $title = $q->param('title') || ("Navigator Graph".$name); + @tasks = ([$title, parse_datetime($q->param('start')),parse_datetime($q->param('end'))]); my ($graphret,$xs,$ys) = RRDs::graph ("dummy", '--start', $tasks[0][1], |