From ecfe5ce750615759c250910ecbd2bb9b0c5bc49f Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Wed, 19 Dec 2012 21:27:15 +0000 Subject: error app returns correct data format --- apps/error/error_app.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'apps') 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 -- cgit v1.2.1