aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/error/error_app.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/error/error_app.php b/apps/error/error_app.php
index 17210c812..dc1d64cb2 100644
--- a/apps/error/error_app.php
+++ b/apps/error/error_app.php
@@ -32,9 +32,16 @@ class Error extends Pinq_App
require 'langs.php'; // needs absolute path in some form to be link depth independent
_lang_load($locale, '404');
- header('Mageia-Test: 1');
- header('HTTP/1.0 404 Not Found');
- header('Status: 404 Not Found');
+ ob_start();
include 'templates/404.tpl';
+
+ return array(
+ 'headers' => array(
+ 'Mageia-Test: 1',
+ 'HTTP/1.0 404 Not Found',
+ 'Status: 404 Not Found'
+ ),
+ 'body' => ob_get_clean()
+ );
}
} \ No newline at end of file