diff options
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/update.php b/update.php index 1211fb453..890d4c0ad 100644 --- a/update.php +++ b/update.php @@ -813,6 +813,11 @@ ini_set('display_errors', FALSE); include_once './includes/bootstrap.inc'; update_fix_system_table(); +// Bootstrap Drupal in a safe way, without calling hook_init() and hook_exit(), +// to avoid possible warnings. We need to set the global variable after +// DRUPAL_BOOTSTRAP_CONFIGURATION, which unsets globals, but before the rest. +drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION); +$update_mode = TRUE; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); drupal_maintenance_theme(); |