From: Bryan Tong Minh Date: Sat, 23 Jan 2010 15:27:53 +0000 (+0000) Subject: (bug 19528) Revert 55749: "according to the XSLT 1.0 spec, the MIME type should be... X-Git-Tag: 1.31.0-rc.0~38140 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=843acd3aab7e98def3f4df383ea7dde2ae908e14;p=lhc%2Fweb%2Fwiklou.git (bug 19528) Revert 55749: "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." The mime type text/xsl is the only one supported by all modern browsers. --- diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index e65a2bb643..f4342a4744 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/xml" ?>' ); + $this->printText( 'escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' ); } public function getAllowedParams() {