Commit 821221cc authored by Dries's avatar Dries

- Patch #181063 by chx: fixed problem with drupal_bootstrap() not booting to the proper level.

parent 39706e3c
......@@ -867,19 +867,10 @@ function drupal_anonymous_user($session = '') {
function drupal_bootstrap($phase) {
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), $phase_index = 0;
// Stop early if $phase was already executed.
if ($phase < $phase_index) {
return;
}
while (!empty($phases)) {
while ($phase >= $phase_index && isset($phases[$phase_index])) {
$current_phase = $phases[$phase_index];
unset($phases[$phase_index]);
unset($phases[$phase_index++]);
_drupal_bootstrap($current_phase);
$phase_index++;
if ($phase == $current_phase) {
return;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment