summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-11-16 15:35:24 +0000
committerDries Buytaert <dries@buytaert.net>2007-11-16 15:35:24 +0000
commit9771f15ffc32387d5c7d0f5f003d943f48c53d86 (patch)
tree37a8184e7f7ae1779a5724d0f239aaaf7d6804da /update.php
parentdb2c726a4a8a8dbb8a4feb8009060f2e99664e25 (diff)
downloadbrdo-9771f15ffc32387d5c7d0f5f003d943f48c53d86.tar.gz
brdo-9771f15ffc32387d5c7d0f5f003d943f48c53d86.tar.bz2
- Patch #179143 by Gabor, JirkaRybka, chx, ChrisKennedy, et al: do not fire bootstrap hooks during update.
Diffstat (limited to 'update.php')
-rw-r--r--update.php5
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();