Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
3de6420c
Commit
3de6420c
authored
Oct 19, 2008
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#323372
by chx: clean up drupal_bootstrap().
parent
d6d71252
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
includes/bootstrap.inc
includes/bootstrap.inc
+11
-12
No files found.
includes/bootstrap.inc
View file @
3de6420c
...
...
@@ -1020,17 +1020,17 @@ function drupal_anonymous_user($session = '') {
* DRUPAL_BOOTSTRAP_PATH: set $_GET['q'] to Drupal path of request.
* DRUPAL_BOOTSTRAP_FULL: Drupal is fully loaded, validate and fix input data.
*/
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
;
while
(
$phase
>=
$phase_index
&&
isset
(
$phases
[
$phase_index
]))
{
$current_phase
=
$phases
[
$phase_index
];
unset
(
$phases
[
$phase_index
++
]);
_drupal_bootstrap
(
$current_phase
);
global
$_drupal_current_bootstrap_phase
;
$_drupal_current_bootstrap_phase
=
$current_phase
;
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
)
{
$current_phase
=
array_shift
(
$phases
);
_drupal_bootstrap
(
$current_phase
);
$completed_phase
=
$current_phase
;
}
}
return
$completed_phase
;
}
/**
...
...
@@ -1041,8 +1041,7 @@ function drupal_bootstrap($phase) {
* @see drupal_bootstrap
*/
function
drupal_get_bootstrap_phase
()
{
global
$_drupal_current_bootstrap_phase
;
return
$_drupal_current_bootstrap_phase
;
return
drupal_bootstrap
();
}
function
_drupal_bootstrap
(
$phase
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment