From: Tim Starling Date: Wed, 2 Sep 2009 08:05:47 +0000 (+0000) Subject: Fix for r53194: according to the XSLT 1.0 spec, the MIME type should be text/xml... X-Git-Tag: 1.31.0-rc.0~39968 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=f4d32ce48b53fe62331d5ad37a239e9a03705288;p=lhc%2Fweb%2Fwiklou.git Fix for r53194: according to the XSLT 1.0 spec, the MIME type should be text/xml or application/xml. In XSLT 2.0, it is application/xslt+xml. Either way, text/xsl is wrong. --- diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index 51d32fc720..b34ed3aaff 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -173,7 +173,7 @@ class ApiFormatXml extends ApiFormatBase { $this->setWarning( 'Stylesheet should have .xsl extension.' ); return; } - $this->printText( 'escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' ); + $this->printText( 'escapeLocalURL( 'action=raw' ) . '" type="text/xml" ?>' ); } public function getAllowedParams() {