From 4e8581c70ffa0d12f6613c078a5661309f66de06 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Mon, 14 May 2012 09:40:13 +0000 Subject: [PATCH] don't overwrite graph time period to 1y always git-svn-id: http://www.observium.org/svn/observer/trunk@3179 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/functions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index e1e46c26d..813e2c1a1 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -160,6 +160,8 @@ function generate_graph_popup($graph_array) ## Take $graph_array and print day,week,month,year graps in overlib, hovered over graph + $original_from = $graph_array['from']; + $graph = generate_graph_tag($graph_array); $content = "
".$graph_array['popup_title']."
"; $content .= "
"; @@ -175,6 +177,8 @@ function generate_graph_popup($graph_array) $graph_array['from'] = $config['time']['year']; $content .= generate_graph_tag($graph_array); $content .= "
"; + + $graph_array['from'] = $original_from; $graph_array['link'] = generate_url($graph_array, array('page' => 'graphs', 'height' => NULL, 'width' => NULL, 'bg' => NULL));