diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-20 11:33:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-20 11:33:00 +0000 |
commit | daad5033e9d5b716f57c1d97ac1e2a548795fdb7 (patch) | |
tree | ea380c932f341735ec592bf8c986fb32461b35e4 | |
parent | ca36d1f406bef9ada10b7dff6c5a541ba5110c9e (diff) | |
download | brdo-daad5033e9d5b716f57c1d97ac1e2a548795fdb7.tar.gz brdo-daad5033e9d5b716f57c1d97ac1e2a548795fdb7.tar.bz2 |
- Patch #323372 by Damien Tournoud: fixed bootstrap phase issue that broke installer.
-rw-r--r-- | includes/bootstrap.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index e6bdaa736..ed09bc740 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1023,8 +1023,8 @@ function drupal_anonymous_user($session = '') { function drupal_bootstrap($phase = NULL) { static $phases = array(DRUPAL_BOOTSTRAP_CONFIGURATION, DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE, DRUPAL_BOOTSTRAP_DATABASE, DRUPAL_BOOTSTRAP_ACCESS, DRUPAL_BOOTSTRAP_SESSION, DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE, DRUPAL_BOOTSTRAP_LANGUAGE, DRUPAL_BOOTSTRAP_PATH, DRUPAL_BOOTSTRAP_FULL), $completed_phase = -1; - if (isset($phase) && $phase > $completed_phase) { - while ($phases) { + if (isset($phase)) { + while ($phases && $phase > $completed_phase) { $current_phase = array_shift($phases); _drupal_bootstrap($current_phase); $completed_phase = $current_phase; |