Page MenuHomeDevCentral

D1169.id2987.diff
No OneTemporary

D1169.id2987.diff

diff --git a/includes/document.php b/includes/document.php
--- a/includes/document.php
+++ b/includes/document.php
@@ -153,7 +153,6 @@
$this->status = 404;
}
-
//Fills info from URL
$pathinfo = pathinfo($this->url);
if (!$this->is_homepage()) {
@@ -257,11 +256,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 +304,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, 23:56 (15 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2308601
Default Alt Text
D1169.id2987.diff (980 B)

Event Timeline