summaryrefslogtreecommitdiff
path: root/modules/simpletest/simpletest.install
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 /modules/simpletest/simpletest.install
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 'modules/simpletest/simpletest.install')
-rw-r--r--modules/simpletest/simpletest.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/simpletest/simpletest.install b/modules/simpletest/simpletest.install
index c6d5c34c7..4d549399b 100644
--- a/modules/simpletest/simpletest.install
+++ b/modules/simpletest/simpletest.install
@@ -28,10 +28,10 @@ function simpletest_install() {
}
// Copy other test files for consistency.
- $files = file_scan_directory($path, '(html|image|javascript|php|sql)-.*');
+ $files = file_scan_directory($path, '/(html|image|javascript|php|sql)-.*/');
if (count($files) == 0) {
$original = drupal_get_path('module', 'simpletest') . '/files';
- $files = file_scan_directory($original, '(html|image|javascript|php|sql)-.*');
+ $files = file_scan_directory($original, '/(html|image|javascript|php|sql)-.*/');
foreach ($files as $file) {
file_copy($file->filename, $path . '/' . $file->basename);
}