summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-07-28 01:46:59 +0000
committerDries Buytaert <dries@buytaert.net>2010-07-28 01:46:59 +0000
commitb8a7b8a89b7bdef595e031f04a91cbc08e128c3f (patch)
tree7ab6f1b98c8870946b27b9e309fafb0112470d36
parent6b6ea89afa76e5b3e3161e1afcb0e5f6350099a9 (diff)
downloadbrdo-b8a7b8a89b7bdef595e031f04a91cbc08e128c3f.tar.gz
brdo-b8a7b8a89b7bdef595e031f04a91cbc08e128c3f.tar.bz2
- Patch #508056 by Stevel: _module_build_dependencies() calls drupal_depth_first_search() with wrong param count.
-rw-r--r--includes/module.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/module.inc b/includes/module.inc
index fc9b08c5a..bb7d32621 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -195,18 +195,16 @@ function system_list_reset() {
*/
function _module_build_dependencies($files) {
require_once DRUPAL_ROOT . '/includes/graph.inc';
- $roots = $files;
foreach ($files as $filename => $file) {
$graph[$file->name]['edges'] = array();
if (isset($file->info['dependencies']) && is_array($file->info['dependencies'])) {
foreach ($file->info['dependencies'] as $dependency) {
$dependency_data = drupal_parse_dependency($dependency);
$graph[$file->name]['edges'][$dependency_data['name']] = $dependency_data;
- unset($roots[$dependency_data['name']]);
}
}
}
- drupal_depth_first_search($graph, array_keys($roots));
+ drupal_depth_first_search($graph);
foreach ($graph as $module => $data) {
$files[$module]->required_by = isset($data['reverse_paths']) ? $data['reverse_paths'] : array();
$files[$module]->requires = isset($data['paths']) ? $data['paths'] : array();