diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-08 22:04:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-08 22:04:03 +0000 |
commit | 50b3072f5577849a37cfe8e38f49d839fd15eaf0 (patch) | |
tree | 69d4bf4b8697a0432fff15b23c11838380c7e696 /install.php | |
parent | ceaf8a0c74e8c1dcd36235c1348725bc9109c91f (diff) | |
download | brdo-50b3072f5577849a37cfe8e38f49d839fd15eaf0.tar.gz brdo-50b3072f5577849a37cfe8e38f49d839fd15eaf0.tar.bz2 |
- Rollback of patch #74645 -- breaks installer.
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php index 4a5df926f..caa5feb3e 100644 --- a/install.php +++ b/install.php @@ -410,7 +410,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('.', '..', 'CVS'), 0, TRUE, 'name', 0); } /** @@ -496,7 +496,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('.', '..', 'CVS'), 0, FALSE); array_unshift($locales, (object) array('name' => 'en')); return $locales; } |