diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-15 23:50:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-15 23:50:56 +0000 |
commit | 9fd8b30dfb2eaf4651d049f742a908087cf4de8f (patch) | |
tree | b15812dcbe9fb0034fc908bd966d682e67e27b61 /includes | |
parent | 54655d3a52a7fbeeb59e628acdfa073ad9da525f (diff) | |
download | brdo-9fd8b30dfb2eaf4651d049f742a908087cf4de8f.tar.gz brdo-9fd8b30dfb2eaf4651d049f742a908087cf4de8f.tar.bz2 |
#999072 by Damien Tournoud: Fix typo in drupal_system_listing() preventing testing profile from working.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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]); } } } |