diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index e09bf3d..09cdcbf 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -66,10 +66,7 @@
* 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 @@
* ------------------------------------------------------
*/
-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 @@
* 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 @@
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 @@
* 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 @@
* 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('display_override'))
-{
- $EXT->_call_hook('display_override');
-}
-else
+if ($EXT->_call_hook('display_override') === FALSE)
{
$OUT->_display();
}
@@ -248,10 +224,7 @@
* Is there a "post_system" hook?
* ------------------------------------------------------
*/
-if ($EXT->_hook_exists('post_system'))
-{
- $EXT->_call_hook('post_system');
-}
+$EXT->_call_hook('post_system');
/*
* ------------------------------------------------------