Skip to content
Snippets Groups Projects
Commit f5ea36bb authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#125533 by keve: do not continue bootstrap if the process was called back with...

#125533 by keve: do not continue bootstrap if the process was called back with a phase already executed
parent 01ae6f50
No related branches found
No related tags found
No related merge requests found
......@@ -852,6 +852,11 @@ 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);
// Stop early if $phase was already executed.
if (!in_array($phase, $phases)) {
return;
}
while (!is_null($current_phase = array_shift($phases))) {
_drupal_bootstrap($current_phase);
if ($phase == $current_phase) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment