Commits

Anonymous committed 8464441

  • Participants
  • Parent commits 4c350ca

Comments (0)

Files changed (1)

system/codeigniter/CodeIgniter.php

  *  Is there a "pre_system" hook?
  * ------------------------------------------------------
  */
-if ($EXT->_hook_exists('pre_system'))
-{
-	$EXT->_call_hook('pre_system');
-}
+$EXT->_call_hook('pre_system');
 
 /*
  * ------------------------------------------------------
  * ------------------------------------------------------
  */
  
-if ($EXT->_hook_exists('cache_override'))
-{
-	$EXT->_call_hook('cache_override');
-}
-else
+if ($EXT->_call_hook('cache_override') === FALSE)
 {
 	if ($OUT->_display_cache() == TRUE)
 	{
  *  Is there a "pre_controller" hook?
  * ------------------------------------------------------
  */
-if ($EXT->_hook_exists('pre_controller'))
-{
-	$EXT->_call_hook('pre_controller');
-}
+$EXT->_call_hook('pre_controller');
 
 /*
  * ------------------------------------------------------
 
 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();
 	}
 	 *  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)
 	{
  *  Is there a "post_controller" hook?
  * ------------------------------------------------------
  */
-if ($EXT->_hook_exists('post_controller'))
-{
-	$EXT->_call_hook('post_controller');
-}
+$EXT->_call_hook('post_controller');
 
 /*
  * ------------------------------------------------------
  * ------------------------------------------------------
  */
  
-if ($EXT->_hook_exists('display_override'))
-{
-	$EXT->_call_hook('display_override');
-}
-else
+if ($EXT->_call_hook('display_override') === FALSE)
 {
 	$OUT->_display();
 }
  *  Is there a "post_system" hook?
  * ------------------------------------------------------
  */
-if ($EXT->_hook_exists('post_system'))
-{
-	$EXT->_call_hook('post_system');
-}
+$EXT->_call_hook('post_system');
 
 /*
  * ------------------------------------------------------