From 15dcf49a0ea6895cbf009dc15277858cfdd422ef Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Mon, 12 May 2008 21:37:04 +0000 Subject: removed an ereg from config added a qualifier to a str_replace for \t in Input changed substr to strncmp in Codeigniter.php and directory_map function added braces in an if statement of unit test Removed "scripts" from the auto-load search path. Scripts were deprecated in Version 1.4.1 (September 21, 2006). If you still need to use them for legacy reasons, they must now be manually loaded in each Controller. --- system/helpers/directory_helper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system/helpers') diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php index 7af4d1e38..d00bdf0aa 100644 --- a/system/helpers/directory_helper.php +++ b/system/helpers/directory_helper.php @@ -50,7 +50,7 @@ if (! function_exists('directory_map')) while (FALSE !== ($file = readdir($fp))) { - if (substr($file, 0, 1) == '.') + if (strncmp($file, '.', 1) == 0) { continue; } @@ -75,6 +75,6 @@ if (! function_exists('directory_map')) } } - -/* End of file directory_helper.php */ + +/* End of file directory_helper.php */ /* Location: ./system/helpers/directory_helper.php */ \ No newline at end of file -- cgit v1.2.3-24-g4f1b