summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-07-11 20:23:30 +0200
committerDerek Jones <derek.jones@ellislab.com>2009-07-11 20:23:30 +0200
commitf6b442bba6666f3265680223e1ef9df08b94eb08 (patch)
tree8297a8f4fb772e6a2b22a5262608ac3bd7e96cec /system
parent817163a1bcff02285f763bcf72ff02e86f218cf8 (diff)
add 404 headers to show_404() proper instead of in the error_404.php template
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;
}