cfoe
2012-07-19 0ded734ab58b1a91766c776e3d94950ccc287aa9
changed menu item generation from users current to all installed themes in the admin module
1 files modified
14 ■■■■■ changed files
interface/web/admin/lib/module.conf.php 14 ●●●●● patch | view | raw | blame | history
interface/web/admin/lib/module.conf.php
@@ -78,6 +78,20 @@
                    'link'    => 'admin/system_config_edit.php?id=1',
                    'html_id'   => 'interface_config');
//**** Load the settings pages of all installed themes
$menu_dir = ISPC_WEB_PATH.'/admin/lib/interface.d';
if (is_dir($menu_dir)) {
    if ($dh = opendir($menu_dir)) {
        //** Go through all files in the menu dir
        while (($file = readdir($dh)) !== false) {
            if ($file != '.' && $file != '..' && substr($file, -9, 9) == '.menu.php') {
                include_once($menu_dir . '/' . $file);
            }
        }
    }
}
include_once(ISPC_WEB_PATH.'/tools/lib/interface.d/' . $_SESSION['s']['user']['app_theme'] . '.menu.php');
$module['nav'][] = array(   'title'     => 'Interface',