summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-02-04 19:34:38 +0000
committerDries Buytaert <dries@buytaert.net>2011-02-04 19:34:38 +0000
commit0a7220483d2818d0cdb1da56cc6445e94bb4f37c (patch)
treecf72532a8accc749e574a32b78d4fd485a0d2c18 /includes
parent10894ac845c83382b70a35b195b548433dec1163 (diff)
downloadbrdo-0a7220483d2818d0cdb1da56cc6445e94bb4f37c.tar.gz
brdo-0a7220483d2818d0cdb1da56cc6445e94bb4f37c.tar.bz2
- Patch #1049116 by solotandem, David_Rothstein: module_enable() doesn't account for version strings in dependencies[].
Diffstat (limited to 'includes')
-rw-r--r--includes/module.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc
index aa061e195..14b394cc7 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -372,7 +372,7 @@ function module_enable($module_list, $enable_dependencies = TRUE) {
// Add dependencies to the list, with a placeholder weight.
// The new modules will be processed as the while loop continues.
- foreach ($module_data[$module]->info['dependencies'] as $dependency) {
+ foreach (array_keys($module_data[$module]->requires) as $dependency) {
if (!isset($module_list[$dependency])) {
$module_list[$dependency] = 0;
}