summaryrefslogtreecommitdiff
path: root/includes/theme.maintenance.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-01 17:48:15 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-01 17:48:15 +0000
commitcad09751c84cf8e4ed4f3c2d5ca75eca8598db56 (patch)
treecd981459179ce3b397c470d0f547f19c98023611 /includes/theme.maintenance.inc
parentd297ac7464fd8a307910052d7e391ae6588f9451 (diff)
downloadbrdo-cad09751c84cf8e4ed4f3c2d5ca75eca8598db56.tar.gz
brdo-cad09751c84cf8e4ed4f3c2d5ca75eca8598db56.tar.bz2
- Patch #766100 by andypost: undefined function _system_rebuild_theme_data() when trying to run update.php.
Diffstat (limited to 'includes/theme.maintenance.inc')
-rw-r--r--includes/theme.maintenance.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc
index e8b470412..e602847d1 100644
--- a/includes/theme.maintenance.inc
+++ b/includes/theme.maintenance.inc
@@ -44,18 +44,18 @@ function _drupal_maintenance_theme() {
spl_autoload_register('db_autoload');
}
- // Ensure that system.module is loaded.
- if (!function_exists('_system_rebuild_theme_data')) {
- $module_list['system']['filename'] = 'modules/system/system.module';
- module_list(TRUE, FALSE, FALSE, $module_list);
- drupal_load('module', 'system');
- }
-
// We use the default theme as the maintenance theme. If a default theme
// isn't specified in the database or in settings.php, we use Garland.
$custom_theme = variable_get('maintenance_theme', variable_get('theme_default', 'garland'));
}
+ // Ensure that system.module is loaded.
+ if (!function_exists('_system_rebuild_theme_data')) {
+ $module_list['system']['filename'] = 'modules/system/system.module';
+ module_list(TRUE, FALSE, FALSE, $module_list);
+ drupal_load('module', 'system');
+ }
+
$themes = list_themes();
// list_themes() triggers a drupal_alter() in maintenance mode, but we can't