Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443488
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443488
Commits
c19a1941
Commit
c19a1941
authored
15 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#557542
by catch: CLI installs were broken.
parent
2fb451c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.php
+4
-17
4 additions, 17 deletions
install.php
with
4 additions
and
17 deletions
install.php
+
4
−
17
View file @
c19a1941
...
@@ -275,11 +275,6 @@ function install_begin_request(&$install_state) {
...
@@ -275,11 +275,6 @@ function install_begin_request(&$install_state) {
$install_state
[
'settings_verified'
]
=
install_verify_settings
();
$install_state
[
'settings_verified'
]
=
install_verify_settings
();
if
(
$install_state
[
'settings_verified'
])
{
if
(
$install_state
[
'settings_verified'
])
{
// Since we have a database connection, we use the normal cache system.
// This is important, as the installer calls into the Drupal system for
// the clean URL checks, so we should maintain the cache properly.
unset
(
$conf
[
'cache_default_class'
]);
// Initialize the database system. Note that the connection
// Initialize the database system. Note that the connection
// won't be initialized until it is actually requested.
// won't be initialized until it is actually requested.
require_once
DRUPAL_ROOT
.
'/includes/database/database.inc'
;
require_once
DRUPAL_ROOT
.
'/includes/database/database.inc'
;
...
@@ -1446,22 +1441,14 @@ function install_finished(&$install_state) {
...
@@ -1446,22 +1441,14 @@ function install_finished(&$install_state) {
system_rebuild_module_data
();
system_rebuild_module_data
();
system_rebuild_theme_data
();
system_rebuild_theme_data
();
// Rebuild menu and registry to get content type links registered by the
// Flush all caches to ensure that any full bootstraps during the installer
// profile, and possibly any other menu items created through the tasks.
// do not leave stale cached data, and that any content types or other items
menu_rebuild
();
// registered by the install profile are registered correctly.
drupal_flush_all_caches
();
// Rebuild the database cache of node types, so that any node types added
// by newly installed modules are registered correctly and initialized with
// the necessary fields.
node_types_rebuild
();
// Register actions declared by any modules.
// Register actions declared by any modules.
actions_synchronize
();
actions_synchronize
();
// Randomize query-strings on css/js files, to hide the fact that this is a
// new install, not upgraded yet.
_drupal_flush_css_js
();
// Remember the profile which was used.
// Remember the profile which was used.
variable_set
(
'install_profile'
,
drupal_get_profile
());
variable_set
(
'install_profile'
,
drupal_get_profile
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment