From 7e4c58744dc9f8b8656f88612fd58f54b7e522e4 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Fri, 13 Jul 2012 09:34:59 +0200 Subject: allow title to be defined via cgi parameter when calling navigator interface directly --- lib/Smokeping.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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], -- cgit v1.2.3-24-g4f1b