fix the error message (still a hack)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1081 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
1ac68b6a74
commit
f7cfa13e23
@ -6,7 +6,7 @@ class Handle404 implements Extension {
|
|||||||
$page = $event->page;
|
$page = $event->page;
|
||||||
// hax.
|
// hax.
|
||||||
if($page->mode == "page" && (!isset($page->blocks) || $this->count_main($page->blocks) == 0)) {
|
if($page->mode == "page" && (!isset($page->blocks) || $this->count_main($page->blocks) == 0)) {
|
||||||
$h_pagename = html_escape($event->page_name);
|
$h_pagename = html_escape(implode('/', $event->args));
|
||||||
header("HTTP/1.0 404 Page Not Found");
|
header("HTTP/1.0 404 Page Not Found");
|
||||||
$page->set_title("404");
|
$page->set_title("404");
|
||||||
$page->set_heading("404 - No Handler Found");
|
$page->set_heading("404 - No Handler Found");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user