summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/application/errors/error_404.php1
-rw-r--r--system/libraries/Exceptions.php2
2 files changed, 1 insertions, 2 deletions
diff --git a/system/application/errors/error_404.php b/system/application/errors/error_404.php
index bfe9444b2..1c513a205 100644
--- a/system/application/errors/error_404.php
+++ b/system/application/errors/error_404.php
@@ -1,4 +1,3 @@
-<?php header("HTTP/1.1 404 Not Found"); ?>
<html>
<head>
<title>404 Page Not Found</title>
diff --git a/system/libraries/Exceptions.php b/system/libraries/Exceptions.php
index 1f99d01c3..9c655a174 100644
--- a/system/libraries/Exceptions.php
+++ b/system/libraries/Exceptions.php
@@ -94,7 +94,7 @@ class CI_Exceptions {
$message = "The page you requested was not found.";
log_message('error', '404 Page Not Found --> '.$page);
- echo $this->show_error($heading, $message, 'error_404');
+ echo $this->show_error($heading, $message, 'error_404', 404);
exit;
}