Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3915160
D1169.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
799 B
Referenced Files
None
Subscribers
None
D1169.diff
View Options
diff --git a/includes/document.php b/includes/document.php
--- a/includes/document.php
+++ b/includes/document.php
@@ -257,11 +257,6 @@
global $Config, $Session, $CurrentUser;
$document = $this;
- //404 header
- if ($this->status == 404) {
- header("Status: 404 Not Found");
- }
-
//Header content
if (!$this->noheader) {
$header = $this->get_directory() . '/_header.php';
@@ -310,6 +305,11 @@
global $Config, $Session, $CurrentUser;
$document = $this;
+ //Headers
+ if ($this->status == 404) {
+ header("Status: 404 Not Found");
+ }
+
//HTML output
$theme = $Config['Theme'];
if (!$this->noheader) include("themes/$theme/header.php");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 18:50 (18 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2308397
Default Alt Text
D1169.diff (799 B)
Attached To
Mode
D1169: Send headers before any body output
Attached
Detach File
Event Timeline
Log In to Comment