From: Alexandre Emsenhuber Date: Mon, 5 Apr 2010 19:30:38 +0000 (+0000) Subject: Let at least be consistent between the two header() calls (the other one is four... X-Git-Tag: 1.31.0-rc.0~37241 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=b52162a135f95eea5b16f57d0db454666b14c246;p=lhc%2Fweb%2Fwiklou.git Let at least be consistent between the two header() calls (the other one is four lines below) --- 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' );