diff options
author | admin <devnull@localhost> | 2006-09-15 22:02:14 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-15 22:02:14 +0200 |
commit | af436d7ceb4ea5afb96e3cbe1545ba9ace3d062a (patch) | |
tree | e238306208828a435add52cb7e91435aa4b6e7e6 /system | |
parent | 764672b45108814fc643be65b53b18f0b6507112 (diff) |
Diffstat (limited to 'system')
-rw-r--r-- | system/codeigniter/CodeIgniter.php | 43 |
1 files changed, 8 insertions, 35 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php index e09bf3deb..09cdcbfba 100644 --- a/system/codeigniter/CodeIgniter.php +++ b/system/codeigniter/CodeIgniter.php @@ -66,10 +66,7 @@ $EXT =& _load_class('CI_Hooks'); * Is there a "pre_system" hook? * ------------------------------------------------------ */ -if ($EXT->_hook_exists('pre_system')) -{ - $EXT->_call_hook('pre_system'); -} +$EXT->_call_hook('pre_system'); /* * ------------------------------------------------------ @@ -87,11 +84,7 @@ $OUT =& _load_class('CI_Output'); * ------------------------------------------------------ */ -if ($EXT->_hook_exists('cache_override')) -{ - $EXT->_call_hook('cache_override'); -} -else +if ($EXT->_call_hook('cache_override') === FALSE) { if ($OUT->_display_cache() == TRUE) { @@ -163,10 +156,7 @@ if ( ! class_exists($class) * Is there a "pre_controller" hook? * ------------------------------------------------------ */ -if ($EXT->_hook_exists('pre_controller')) -{ - $EXT->_call_hook('pre_controller'); -} +$EXT->_call_hook('pre_controller'); /* * ------------------------------------------------------ @@ -177,11 +167,7 @@ $CI = new $class(); if ($RTR->scaffolding_request === TRUE) { - if ($EXT->_hook_exists('scaffolding_override')) - { - $EXT->_call_hook('scaffolding_override'); - } - else + if ($EXT->_call_hook('scaffolding_override') === FALSE) { $CI->_ci_scaffolding(); } @@ -193,10 +179,7 @@ else * Is there a "post_controller_constructor" hook? * ------------------------------------------------------ */ - if ($EXT->_hook_exists('post_controller_constructor')) - { - $EXT->_call_hook('post_controller_constructor'); - } + $EXT->_call_hook('post_controller_constructor'); if ($method == $class) { @@ -223,10 +206,7 @@ else * Is there a "post_controller" hook? * ------------------------------------------------------ */ -if ($EXT->_hook_exists('post_controller')) -{ - $EXT->_call_hook('post_controller'); -} +$EXT->_call_hook('post_controller'); /* * ------------------------------------------------------ @@ -234,11 +214,7 @@ if ($EXT->_hook_exists('post_controller')) * ------------------------------------------------------ */ -if ($EXT->_hook_exists('display_override')) -{ - $EXT->_call_hook('display_override'); -} -else +if ($EXT->_call_hook('display_override') === FALSE) { $OUT->_display(); } @@ -248,10 +224,7 @@ else * Is there a "post_system" hook? * ------------------------------------------------------ */ -if ($EXT->_hook_exists('post_system')) -{ - $EXT->_call_hook('post_system'); -} +$EXT->_call_hook('post_system'); /* * ------------------------------------------------------ |