Fix for r53194: according to the XSLT 1.0 spec, the MIME type should be text/xml...
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 2 Sep 2009 08:05:47 +0000 (08:05 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 2 Sep 2009 08:05:47 +0000 (08:05 +0000)
includes/api/ApiFormatXml.php

index 51d32fc..b34ed3a 100644 (file)
@@ -173,7 +173,7 @@ class ApiFormatXml extends ApiFormatBase {
                        $this->setWarning( 'Stylesheet should have .xsl extension.' );
                        return;
                }
-               $this->printText( '<?xml-stylesheet href="' . $nt->escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' );
+               $this->printText( '<?xml-stylesheet href="' . $nt->escapeLocalURL( 'action=raw' ) . '" type="text/xml" ?>' );
        }
        
        public function getAllowedParams() {