From 99a189d468a3caa99db5fcd8edc476a6a52c5920 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 20 Mar 2012 11:03:06 +0000 Subject: [PATCH] 2012-03-20 Sergio Martin * include/functions_visual_map.php operation/visual_console/public_console.php: Fixed the public visual console graphs adding homeurl git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5792 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_visual_map.php | 6 +++--- pandora_console/operation/visual_console/public_console.php | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 544bb501b0..f80e8b6273 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-03-20 Sergio Martin + + * include/functions_visual_map.php + operation/visual_console/public_console.php: Fixed the + public visual console graphs adding homeurl + 2012-03-20 Sergio Martin * operation/visual_console/render_view.php diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 398134e00d..70b1b5eca3 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -624,7 +624,7 @@ function visual_map_get_status_element($layoutData) { * @param bool $show_links * @param bool $draw_lines */ -function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_lines = true, $width = null, $height = null) { +function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_lines = true, $width = null, $height = null, $home_url = '') { //TODO: USE THE SAME CODE THAT THE VISUAL MAP EDITOR global $config; @@ -1233,12 +1233,12 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'], false, ((integer)($proportion * $layout_data['width'])), ((integer)($proportion * $layout_data['height'])), - '', null, false, 1, false, 0, '', 0, 0, true, true); + '', null, false, 1, false, 0, '', 0, 0, true, true, $home_url); } else { echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'], false, $layout_data['width'], $layout_data['height'], - '', null, false, 1, false, 0, '', 0, 0, true, true); + '', null, false, 1, false, 0, '', 0, 0, true, true, $home_url); } echo ""; echo ""; diff --git a/pandora_console/operation/visual_console/public_console.php b/pandora_console/operation/visual_console/public_console.php index c6bc17753b..2df09315da 100644 --- a/pandora_console/operation/visual_console/public_console.php +++ b/pandora_console/operation/visual_console/public_console.php @@ -71,7 +71,7 @@ $options = array(); echo "

". $layout_name. "

"; -visual_map_print_visual_map ($id_layout); +visual_map_print_visual_map ($id_layout, true, true, null, null, '../../'); $values = array (); $values[5] = human_time_description_raw (5);