diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-10 05:06:55 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-10 05:06:55 +0000 |
commit | 8cf387a370b1e4f57369edc8267b2332977eea8e (patch) | |
tree | c82e611755a60fdb6b2c958fd453c0e7f07626f5 /includes/theme.maintenance.inc | |
parent | b7c27c32466c380f78df3f4feb0285371e9f9fd0 (diff) | |
download | brdo-8cf387a370b1e4f57369edc8267b2332977eea8e.tar.gz brdo-8cf387a370b1e4f57369edc8267b2332977eea8e.tar.bz2 |
#454462 by JohnAlbin: Fire MODULE_preprocess_maintenance_page functions.
Diffstat (limited to 'includes/theme.maintenance.inc')
-rw-r--r-- | includes/theme.maintenance.inc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 3267e1d01..5445fc836 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -36,12 +36,15 @@ function _drupal_maintenance_theme() { $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, $module_list); - drupal_load('module', 'system'); - drupal_load('module', 'filter'); + if (!db_is_active()) { + // Because we are operating in a crippled environment, we need to + // bootstrap just enough to allow hook invocations to work. + $module_list['system']['filename'] = 'modules/system/system.module'; + $module_list['filter']['filename'] = 'modules/filter/filter.module'; + module_list(TRUE, FALSE, $module_list); + drupal_load('module', 'system'); + drupal_load('module', 'filter'); + } $theme = variable_get('maintenance_theme', 'minnelli'); } |