From b52162a135f95eea5b16f57d0db454666b14c246 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 5 Apr 2010 19:30:38 +0000 Subject: [PATCH] Let at least be consistent between the two header() calls (the other one is four lines below) --- includes/specials/SpecialExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index b9a44d4837..8a84826a9b 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -134,7 +134,7 @@ class SpecialExport extends SpecialPage { // Cancel output buffering and gzipping if set // This should provide safer streaming for pages with history wfResetOutputBuffers(); - header( "Content-type: application/xml; charset=utf-8" ); + $wgRequest->response()->header( "Content-type: application/xml; charset=utf-8" ); if( $wgRequest->getCheck( 'wpDownload' ) ) { // Provide a sane filename suggestion $filename = urlencode( $wgSitename . '-' . wfTimestampNow() . '.xml' ); -- 2.20.1