diff options
author | admin <devnull@localhost> | 2006-10-20 03:00:31 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-20 03:00:31 +0200 |
commit | e0cd609abeaeb1be5ed0ef7ac88bb6de86627881 (patch) | |
tree | 704968251bdc3cf14ceeb22aea89b97b25c39f1d /system/libraries/Exceptions.php | |
parent | 90931313c2d8a90f84e3a62b59d9603f4ebe4127 (diff) |
Diffstat (limited to 'system/libraries/Exceptions.php')
-rw-r--r-- | system/libraries/Exceptions.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/system/libraries/Exceptions.php b/system/libraries/Exceptions.php index c3af801ae..4bdbe4f83 100644 --- a/system/libraries/Exceptions.php +++ b/system/libraries/Exceptions.php @@ -117,7 +117,11 @@ class CI_Exceptions { function show_error($heading, $message, $template = 'error_general') { $message = '<p>'.implode('</p><p>', ( ! is_array($message)) ? array($message) : $message).'</p>'; - + + if (ob_get_level() > 1) + { + ob_end_flush(); + } ob_start(); include_once(APPPATH.'errors/'.$template.EXT); $buffer = ob_get_contents(); @@ -151,7 +155,11 @@ class CI_Exceptions { $x = explode('/', $filepath); $filepath = $x[count($x)-2].'/'.end($x); } - + + if (ob_get_level() > 1) + { + ob_end_flush(); + } ob_start(); include_once(APPPATH.'errors/error_php'.EXT); $buffer = ob_get_contents(); |