Skip to content

Commit 0ded734

Browse files
author
cfoe
committed
changed menu item generation from users current to all installed themes in the admin module
1 parent dae3b41 commit 0ded734

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

interface/web/admin/lib/module.conf.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@
7878
'link' => 'admin/system_config_edit.php?id=1',
7979
'html_id' => 'interface_config');
8080

81+
//**** Load the settings pages of all installed themes
82+
$menu_dir = ISPC_WEB_PATH.'/admin/lib/interface.d';
83+
84+
if (is_dir($menu_dir)) {
85+
if ($dh = opendir($menu_dir)) {
86+
//** Go through all files in the menu dir
87+
while (($file = readdir($dh)) !== false) {
88+
if ($file != '.' && $file != '..' && substr($file, -9, 9) == '.menu.php') {
89+
include_once($menu_dir . '/' . $file);
90+
}
91+
}
92+
}
93+
}
94+
8195
include_once(ISPC_WEB_PATH.'/tools/lib/interface.d/' . $_SESSION['s']['user']['app_theme'] . '.menu.php');
8296

8397
$module['nav'][] = array( 'title' => 'Interface',

0 commit comments

Comments
 (0)