diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-12-19 21:27:15 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-12-19 21:27:15 +0000 |
commit | ecfe5ce750615759c250910ecbd2bb9b0c5bc49f (patch) | |
tree | 80a50e2fb49cfbf9a8ba10ff8baa86d59cf61525 | |
parent | ff10a0fbf93e47dbe976aec1d518666cb12f60b6 (diff) | |
download | www-ecfe5ce750615759c250910ecbd2bb9b0c5bc49f.tar www-ecfe5ce750615759c250910ecbd2bb9b0c5bc49f.tar.gz www-ecfe5ce750615759c250910ecbd2bb9b0c5bc49f.tar.bz2 www-ecfe5ce750615759c250910ecbd2bb9b0c5bc49f.tar.xz www-ecfe5ce750615759c250910ecbd2bb9b0c5bc49f.zip |
error app returns correct data format
-rw-r--r-- | apps/error/error_app.php | 13 |
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 |