Special:Export produces a particular output format which is the raw wikitext. Outputt...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 9 Mar 2005 02:16:44 +0000 (02:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 9 Mar 2005 02:16:44 +0000 (02:16 +0000)
includes/SpecialExport.php

index 368f345..2dd079f 100644 (file)
@@ -140,8 +140,6 @@ function revision2xml( $rev, $full ) {
        $fname = 'revision2xml';
        wfProfileIn( $fname );
        
-       global $wgParser , $wgUseXMLparser ; # So we can return *real* XML
-
        $xml = "    <revision>\n";
        if( $full )
                $xml .= "    <id>" . $rev->getId() . "</id>\n";
@@ -166,12 +164,7 @@ function revision2xml( $rev, $full ) {
                $xml .= "      <comment>$c</comment>\n";
        }
 
-       $t = $rev->getText() ;
-       if ( $wgUseXMLparser )
-          {
-          $wgParser->runXMLparser ( $t ) ;
-          }
-       $t = xmlsafe( $t ) ;
+       $t = xmlsafe( $rev->getText() );
 
        $xml .= "      <text>$t</text>\n";
        $xml .= "    </revision>\n";