diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:38:35 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:38:35 +0200 |
commit | 7539f67a23c8536f892263d8d7ab9448655d8e22 (patch) | |
tree | e41af691b64df69e94c3c9c0cee83d0f581fc517 /system/codeigniter | |
parent | e370a35a97bda85b03dca973e6eaf28343b43219 (diff) |
Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
Diffstat (limited to 'system/codeigniter')
-rw-r--r-- | system/codeigniter/CodeIgniter.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php index 3114cd4ec..bf3398d81 100644 --- a/system/codeigniter/CodeIgniter.php +++ b/system/codeigniter/CodeIgniter.php @@ -146,7 +146,7 @@ load_class('Controller', FALSE); // Load the local application controller
// Note: The Router class automatically validates the controller path. If this include fails it
// means that the default controller in the Routes.php file is not resolving to something valid.
-if ( ! file_exists(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().EXT))
+if (! file_exists(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().EXT))
{
show_error('Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.');
}
@@ -170,7 +170,7 @@ $class = $RTR->fetch_class(); $method = $RTR->fetch_method();
-if ( ! class_exists($class)
+if (! class_exists($class)
OR $method == 'controller'
OR substr($method, 0, 1) == '_'
OR in_array($method, get_class_methods('Controller'), TRUE)
|