Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
91d82b43
Commit
91d82b43
authored
Jan 24, 2014
by
webchick
Browse files
Issue
#2176151
by sun: Rebuild.php does not include /core/vendor/autoload.php.
parent
673d85fc
Changes
2
Show whitespace changes
Inline
Side-by-side
core/includes/bootstrap.inc
View file @
91d82b43
...
...
@@ -574,7 +574,6 @@ function drupal_settings_initialize() {
if
(
is_readable
(
DRUPAL_ROOT
.
'/'
.
$conf_path
.
'/settings.php'
))
{
include_once
DRUPAL_ROOT
.
'/'
.
$conf_path
.
'/settings.php'
;
}
require_once
__DIR__
.
'../../lib/Drupal/Component/Utility/Settings.php'
;
new
Settings
(
isset
(
$settings
)
?
$settings
:
array
());
$is_https
=
isset
(
$_SERVER
[
'HTTPS'
])
&&
strtolower
(
$_SERVER
[
'HTTPS'
])
==
'on'
;
...
...
@@ -1732,6 +1731,7 @@ function drupal_anonymous_user() {
*
* In order to bootstrap Drupal from another PHP script, you can use this code:
* @code
* require_once '/path/to/drupal/core/vendor/autoload.php';
* require_once '/path/to/drupal/core/includes/bootstrap.inc';
* drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
* @endcode
...
...
core/rebuild.php
View file @
91d82b43
...
...
@@ -15,8 +15,9 @@
// Change the directory to the Drupal root.
chdir
(
'..'
);
require_once
dirname
(
__DIR__
)
.
'/core/includes/bootstrap.inc'
;
require_once
dirname
(
__DIR__
)
.
'/core/includes/utility.inc'
;
require_once
__DIR__
.
'/vendor/autoload.php'
;
require_once
__DIR__
.
'/includes/bootstrap.inc'
;
require_once
__DIR__
.
'/includes/utility.inc'
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_CONFIGURATION
);
...
...
Write
Preview
Supports
Markdown
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