From 89b4c55989eb0a1d2263de3a4a78c179f458cfee Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 20 Sep 2008 03:49:24 +0000 Subject: #64967 follow-up by drewish: Replace ereg with preg in file_scan_directory(). --- includes/registry.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/registry.inc') diff --git a/includes/registry.inc b/includes/registry.inc index 636687136..e306c8487 100644 --- a/includes/registry.inc +++ b/includes/registry.inc @@ -49,7 +49,7 @@ function _registry_rebuild() { } } } - foreach (file_scan_directory('includes', '\.inc$') as $filename => $file) { + foreach (file_scan_directory('includes', '/\.inc$/') as $filename => $file) { $files["./$filename"] = array(); } -- cgit v1.2.3