summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-18 15:07:27 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-18 15:07:27 +0000
commitc03b4c540823c8e9179fdcd93302a7630bbf0d94 (patch)
tree29d354e36433b2b93e3eaa30ad1ead4a7255d8f5 /install.php
parentfb7347bc9d260193f00619fed4b9681670595dc4 (diff)
downloadbrdo-c03b4c540823c8e9179fdcd93302a7630bbf0d94.tar.gz
brdo-c03b4c540823c8e9179fdcd93302a7630bbf0d94.tar.bz2
#255551 by drewish and c960657: Array-itize file_scan_directory()'s parameters (DX improvement).
Diffstat (limited to 'install.php')
-rw-r--r--install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php
index 67d1af596..367f15650 100644
--- a/install.php
+++ b/install.php
@@ -404,7 +404,7 @@ function install_settings_form_submit($form, &$form_state) {
* Find all .profile files.
*/
function install_find_profiles() {
- return file_scan_directory('./profiles', '/\.profile$/', '/(\.\.?|CVS)$/', 0, TRUE, 'name', 0);
+ return file_scan_directory('./profiles', '/\.profile$/', array('key' => 'name'));
}
/**
@@ -490,7 +490,7 @@ function install_select_profile_form(&$form_state, $profile_files) {
* Find all .po files for the current profile.
*/
function install_find_locales($profilename) {
- $locales = file_scan_directory('./profiles/' . $profilename . '/translations', '/\.po$/', '/(\.\.?|CVS)$/', 0, FALSE);
+ $locales = file_scan_directory('./profiles/' . $profilename . '/translations', '/\.po$/', array('recurse' => FALSE));
array_unshift($locales, (object) array('name' => 'en'));
return $locales;
}