summaryrefslogtreecommitdiffstats
path: root/system/libraries/Exceptions.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Exceptions.php')
-rw-r--r--system/libraries/Exceptions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Exceptions.php b/system/libraries/Exceptions.php
index 902b574fc..1f99d01c3 100644
--- a/system/libraries/Exceptions.php
+++ b/system/libraries/Exceptions.php
@@ -113,8 +113,10 @@ class CI_Exceptions {
* @param string the template name
* @return string
*/
- function show_error($heading, $message, $template = 'error_general')
+ function show_error($heading, $message, $template = 'error_general', $status_code = 500)
{
+ set_status_header($status_code);
+
$message = '<p>'.implode('</p><p>', ( ! is_array($message)) ? array($message) : $message).'</p>';
if (ob_get_level() > $this->ob_level + 1)