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/codeigniter/CodeIgniter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system/codeigniter') diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php index 642ff7801..4eb31cbcd 100644 --- a/system/codeigniter/CodeIgniter.php +++ b/system/codeigniter/CodeIgniter.php @@ -172,7 +172,7 @@ $method = $RTR->fetch_method(); if (! class_exists($class) OR $method == 'controller' - OR substr($method, 0, 1) == '_' + OR strncmp($method, '_', 1) == 0 OR in_array($method, get_class_methods('Controller'), TRUE) ) { @@ -273,6 +273,6 @@ if (class_exists('CI_DB') AND isset($CI->db)) } - -/* End of file CodeIgniter.php */ + +/* End of file CodeIgniter.php */ /* Location: ./system/codeigniter/CodeIgniter.php */ \ No newline at end of file -- cgit v1.2.3-24-g4f1b