Commit 0ded734a authored by cfoe's avatar cfoe
Browse files

changed menu item generation from users current to all installed themes in the admin module

parent dae3b41f
......@@ -78,6 +78,20 @@ $items[] = array( 'title' => 'Interface Config',
'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',
......
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