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
f56b384b
Commit
f56b384b
authored
Jun 25, 2010
by
Dries
Browse files
- Patch
#833192
by carlos8f: installer might install modules in wrong order.
parent
35373aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/install.core.inc
View file @
f56b384b
...
...
@@ -1348,6 +1348,15 @@ function install_profile_modules(&$install_state) {
$modules
=
variable_get
(
'install_profile_modules'
,
array
());
$files
=
system_rebuild_module_data
();
variable_del
(
'install_profile_modules'
);
// Install dependencies first.
$modules
=
array_flip
(
$modules
);
foreach
(
$modules
as
$module
=>
$weight
)
{
$modules
[
$module
]
=
$files
[
$module
]
->
sort
;
}
arsort
(
$modules
);
$modules
=
array_keys
(
$modules
);
$operations
=
array
();
foreach
(
$modules
as
$module
)
{
$operations
[]
=
array
(
'_install_module_batch'
,
array
(
$module
,
$files
[
$module
]
->
info
[
'name'
]));
...
...
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