Permalink
Browse files

Update system/core/Common.php

  • Loading branch information...
1 parent 6bd4bf2 commit bfadc749bac56e0c7c28e70a25017954df5c11e9 @arvanoid arvanoid committed Oct 4, 2012
Showing with 37 additions and 37 deletions.
  1. +37 −37 system/core/Common.php
View
@@ -547,43 +547,43 @@ function _error_handler($severity, $message, $filepath, $line)
if ( ! function_exists('_exception_handler'))
{
/**
- * Default Exception Handler
- * Triggers on uncaught exceptions
- *
- * @access private
- * @return void
- */
- function _exception_handler($exception)
- {
- $heading = $exception->getHeading();
- $message = $exception->getMessage();
-
- parent::log_exception(E_ERROR, $message, $exception->getFile(), $exception->getLine());
-
- set_status_header($exception->getStatus());
-
- $_input =& load_class('Input');
-
- if ($_input->is_ajax_request())
- {
- echo $message;
- }
- else
- {
- if (ob_get_level() > $this->ob_level + 1)
- {
- ob_end_flush();
- }
- ob_start();
- include(APPPATH.'errors/'.$exception->getTemplate().'.php');
- $buffer = ob_get_contents();
- ob_end_clean();
-
- echo $buffer;
- }
-
- exit;
- }
+ * Default Exception Handler
+ * Triggers on uncaught exceptions
+ *
+ * @access private
+ * @return void
+ */
+ function _exception_handler($exception)
+ {
+ $heading = $exception->getHeading();
+ $message = $exception->getMessage();
+
+ parent::log_exception(E_ERROR, $message, $exception->getFile(), $exception->getLine());
+
+ set_status_header($exception->getStatus());
+
+ $_input =& load_class('Input');
+
+ if ($_input->is_ajax_request())
+ {
+ echo $message;
+ }
+ else
+ {
+ if (ob_get_level() > $this->ob_level + 1)
+ {
+ ob_end_flush();
+ }
+ ob_start();
+ include(APPPATH.'errors/'.$exception->getTemplate().'.php');
+ $buffer = ob_get_contents();
+ ob_end_clean();
+
+ echo $buffer;
+ }
+
+ exit;
+ }
}
// --------------------------------------------------------------------

0 comments on commit bfadc74

Please sign in to comment.