Page MenuHomeDevCentral

D1169.diff
No OneTemporary

D1169.diff

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

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)

Event Timeline