Skip to content
Snippets Groups Projects
Commit 0e14d736 authored by Marius Cramer's avatar Marius Cramer
Browse files

- Fixed top navigation

parent 2df826da
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ if(isset($_GET['nav']) && $_GET['nav'] == 'top') {
$language = (isset($_SESSION['s']['user']['language']))?$_SESSION['s']['user']['language']:$conf['language'];
$app->load_language_file('web/'.$mt.'/lib/'.$language.'.lng');
$active = ($module['name'] == $_SESSION['s']['module']['name']) ? 1 : 0;
$topnav[$module['order']] = array( 'title' => $app->lng($module['title']),
$topnav[$module['order'].'-'.$module['name']] = array( 'title' => $app->lng($module['title']),
'active' => $active,
'module' => $module['name']);
}
......
......@@ -5,6 +5,7 @@ $module['title'] = 'top_menu_vm';
$module['template'] = 'module.tpl.htm';
$module['startpage'] = 'vm/openvz_vm_list.php';
$module['tab_width'] = '';
$module['order'] = '50';
//**** Templates menu
$items = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment