(bug 19528) Revert 55749: "according to the XSLT 1.0 spec, the MIME type should be...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 23 Jan 2010 15:27:53 +0000 (15:27 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 23 Jan 2010 15:27:53 +0000 (15:27 +0000)
includes/api/ApiFormatXml.php

index e65a2bb..f4342a4 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/xml" ?>' );
+               $this->printText( '<?xml-stylesheet href="' . $nt->escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' );
        }
        
        public function getAllowedParams() {