Commit 0e14d736 authored by Marius Cramer's avatar Marius Cramer

- Fixed top navigation

parent 2df826da
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment