From 9fd8b30dfb2eaf4651d049f742a908087cf4de8f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 15 Dec 2010 23:50:56 +0000 Subject: #999072 by Damien Tournoud: Fix typo in drupal_system_listing() preventing testing profile from working. --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index d400c033d..6968ff172 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -5153,7 +5153,7 @@ function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1) // compatible with Drupal core. This may occur during upgrades of Drupal // core when new modules exist in core while older contrib modules with the // same name exist in a directory such as sites/all/modules/. - foreach (array_intersect_key($files_to_add, $files) as $key => $file) { + foreach (array_intersect_key($files_to_add, $files) as $file_key => $file) { // If it has no info file, then we just behave liberally and accept the // new resource on the list for merging. if (file_exists($info_file = dirname($file->uri) . '/' . $file->name . '.info')) { @@ -5164,7 +5164,7 @@ function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1) // from the array for the current search directory, so it is not // overwritten when merged with the $files array. if (isset($info['core']) && $info['core'] != DRUPAL_CORE_COMPATIBILITY) { - unset($files_to_add[$key]); + unset($files_to_add[$file_key]); } } } -- cgit v1.2.3