summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/pages/404.php')
-rw-r--r--frontend/pages/404.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/frontend/pages/404.php b/frontend/pages/404.php
index e19c818..ffc3b79 100644
--- a/frontend/pages/404.php
+++ b/frontend/pages/404.php
@@ -1,11 +1,10 @@
<?php
function init_404() {
- global $S;
- $S['title']='404: Not Found';
header('HTTP/1.0 404 Not Found', true, 404);
+ return array('title' => '404: Not Found');
}
function body_404() {
- global $S;
- echo print_error('Page Not Found!','The page you are trying to reach, <i>'.$S['root'].'/'.$S['request'].'</i> does not exist.');
+ global $S, $conf;
+ echo print_error('Page Not Found!','The page you are trying to reach, <i>'.$conf['url'].'/'.$S['request'].'</i> does not exist.');
}
?>