summaryrefslogtreecommitdiff
path: root/includes/theme.maintenance.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-30 23:09:14 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-30 23:09:14 +0000
commitcf8ef30aa1baeb39da4c189853e051e17969aba1 (patch)
treec29fb2c9e8a970898acadedaee72e9531c7b823c /includes/theme.maintenance.inc
parent442fe5198cc4705d27e4c4232fc989f61a5d020e (diff)
downloadbrdo-cf8ef30aa1baeb39da4c189853e051e17969aba1.tar.gz
brdo-cf8ef30aa1baeb39da4c189853e051e17969aba1.tar.bz2
#141727 follow up by dvessel: fix maintenance theme in updates
Diffstat (limited to 'includes/theme.maintenance.inc')
-rw-r--r--includes/theme.maintenance.inc18
1 files changed, 9 insertions, 9 deletions
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc
index cfc34e09b..142ae91ee 100644
--- a/includes/theme.maintenance.inc
+++ b/includes/theme.maintenance.inc
@@ -31,23 +31,23 @@ function _drupal_maintenance_theme() {
require_once './includes/database.inc';
unicode_check();
- // Load module basics (needed for hook invokes).
- $module_list['system']['filename'] = 'modules/system/system.module';
- $module_list['filter']['filename'] = 'modules/filter/filter.module';
- module_list(TRUE, FALSE, FALSE, $module_list);
- drupal_load('module', 'system');
- drupal_load('module', 'filter');
-
- $themes = list_themes();
-
// Install and update pages are treated differently to prevent theming overrides.
if (defined('MAINTENANCE_MODE') && (MAINTENANCE_MODE == 'install' || MAINTENANCE_MODE == 'update')) {
$theme = 'minnelli';
}
else {
+ // Load module basics (needed for hook invokes).
+ $module_list['system']['filename'] = 'modules/system/system.module';
+ $module_list['filter']['filename'] = 'modules/filter/filter.module';
+ module_list(TRUE, FALSE, FALSE, $module_list);
+ drupal_load('module', 'system');
+ drupal_load('module', 'filter');
+
$theme = variable_get('maintenance_theme', 'minnelli');
}
+ $themes = list_themes();
+
// Store the identifier for retrieving theme settings with.
$theme_key = $theme;