From e692f99275c6cce174961dc11a7e25d4c22862a0 Mon Sep 17 00:00:00 2001 From: vgilc Date: Wed, 20 Jun 2012 15:50:15 +0000 Subject: [PATCH] 2012-06-20 Vanessa Gil * operation/tree.php: Fixed bug: Missing text in tree view title. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6628 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/operation/tree.php | 21 +++++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f235afdfde..7350c9e49d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-06-20 Vanessa Gil + + * operation/tree.php: Fixed bug: Missing text in tree view title. + 2012-06-20 Miguel de Dios * include/functions_ui.php, diff --git a/pandora_console/operation/tree.php b/pandora_console/operation/tree.php index 20a459e060..e996a731fe 100644 --- a/pandora_console/operation/tree.php +++ b/pandora_console/operation/tree.php @@ -983,8 +983,25 @@ $module_tab = array('text' => "", 'active' => $activeTab == "module"); $onheader = array('os' => $os_tab, 'group' => $group_tab, 'module_group' => $module_group_tab, 'policies' => $policies_tab, 'module' => $module_tab); - -ui_print_page_header (__('Tree view')." - ".__('Sort the agents by'), "images/extensions.png", false, "", false, $onheader); + +switch ($activeTab) { + case 'group': + $order = __('groups'); + break; + case 'module_group': + $order = __('module groups'); + break; + case 'policies': + $order = __('policies'); + break; + case 'module': + $order = __('modules'); + break; + case 'os': + $order = __('OS'); + break; +} +ui_print_page_header (__('Tree view')." - ".__('Sort the agents by ') .$order, "images/extensions.png", false, "", false, $onheader); echo "
";