Condition is added to keep the selection color in the main menu

This commit is contained in:
marcos.alconada 2019-05-29 11:34:23 +02:00
parent 9096444f8f
commit d5ac57064b
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ function menu_print_menu(&$menu)
$sec = (string) get_parameter('sec');
$sec2 = (string) get_parameter('sec2');
if ($sec2 == 'operation/agentes/ver_agente') {
$sec2 = 'godmode/agentes/configurar_agente';
} else {
$sec2 = (string) get_parameter('sec2');
}
$menu_selected = false;
$allsec2 = explode('sec2=', $_SERVER['REQUEST_URI']);