ftimme
2013-06-08 fe9a23f542bc56c1c0b6dc30257418e38ff7bd3a
interface/web/nav.php
@@ -45,6 +45,7 @@
      /*
       * If the dashboard is in the list of modules it always has to be the first!
       */
      asort($modules);
      if (in_array('dashboard', $modules)) {
         $key = array_search('dashboard', $modules);
         unset($modules[$key]);
@@ -55,6 +56,8 @@
            if(is_file($mt.'/lib/module.conf.php')) {
               if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.');
               include_once($mt.'/lib/module.conf.php');
               $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[] = array(   'title'    => $app->lng($module['title']),
                     'active'    => $active,