From da843bf45f6c0edfbc246efaacc8a329b2ce7a8b Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 27 Aug 2012 10:54:16 -0400
Subject: [PATCH] Fixed: FS#2245 - Unable to move from the state "Installation Failed" of an app
---
interface/web/admin/lib/module.conf.php | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/interface/web/admin/lib/module.conf.php b/interface/web/admin/lib/module.conf.php
index 72e4197..91a9401 100644
--- a/interface/web/admin/lib/module.conf.php
+++ b/interface/web/admin/lib/module.conf.php
@@ -78,7 +78,19 @@
'link' => 'admin/system_config_edit.php?id=1',
'html_id' => 'interface_config');
-include_once(ISPC_WEB_PATH.'/tools/lib/interface.d/' . $_SESSION['s']['user']['app_theme'] . '.menu.php');
+//**** 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);
+ }
+ }
+ }
+}
$module['nav'][] = array( 'title' => 'Interface',
'open' => "1",
--
Gitblit v1.9.1