From b8a7b8a89b7bdef595e031f04a91cbc08e128c3f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 28 Jul 2010 01:46:59 +0000 Subject: [PATCH] - Patch #508056 by Stevel: _module_build_dependencies() calls drupal_depth_first_search() with wrong param count. --- includes/module.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/module.inc b/includes/module.inc index fc9b08c5a71..bb7d3262142 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();