From 9771f15ffc32387d5c7d0f5f003d943f48c53d86 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 16 Nov 2007 15:35:24 +0000 Subject: - Patch #179143 by Gabor, JirkaRybka, chx, ChrisKennedy, et al: do not fire bootstrap hooks during update. --- update.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'update.php') 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(); -- cgit v1.2.3