summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-20 03:49:24 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-20 03:49:24 +0000
commit89b4c55989eb0a1d2263de3a4a78c179f458cfee (patch)
treea125af0b0636ecaf984673dffbfe91dccefcfa56 /install.php
parent67f93fcb161f8ba5bb2c87626f3ef8874e7acffa (diff)
downloadbrdo-89b4c55989eb0a1d2263de3a4a78c179f458cfee.tar.gz
brdo-89b4c55989eb0a1d2263de3a4a78c179f458cfee.tar.bz2
#64967 follow-up by drewish: Replace ereg with preg in file_scan_directory().
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 6c01f1040..faf909a6c 100644
--- a/install.php
+++ b/install.php
@@ -401,7 +401,7 @@ function install_settings_form_submit($form, &$form_state) {
* Find all .profile files.
*/
function install_find_profiles() {
- return file_scan_directory('./profiles', '\.profile$', array('.', '..', 'CVS'), 0, TRUE, 'name', 0);
+ return file_scan_directory('./profiles', '/\.profile$/', array('.', '..', 'CVS'), 0, TRUE, 'name', 0);
}
/**
@@ -487,7 +487,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$', array('.', '..', 'CVS'), 0, FALSE);
+ $locales = file_scan_directory('./profiles/' . $profilename . '/translations', '/\.po$/', array('.', '..', 'CVS'), 0, FALSE);
array_unshift($locales, (object) array('name' => 'en'));
return $locales;
}