tbrehm
2012-08-23 e75e35b0d8aa7928bf8b5d6824f2c30c80190182
Implemented: FS#2300 - Additional addons can not populate $wb['top_menu_modulename']
1 files modified
2 ■■■■■ changed files
interface/web/nav.php 2 ●●●●● patch | view | raw | blame | history
interface/web/nav.php
@@ -56,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,