From: Brion Vibber Date: Wed, 9 Mar 2005 02:16:44 +0000 (+0000) Subject: Special:Export produces a particular output format which is the raw wikitext. Outputt... X-Git-Tag: 1.5.0alpha1~660 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=31be32e7d27b2f71c2c3a2c7ac36d486df237edb;p=lhc%2Fweb%2Fwiklou.git Special:Export produces a particular output format which is the raw wikitext. Outputting a different format depending on configuration would break all users of this feature. --- diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 368f3453b9..2dd079fe58 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -140,8 +140,6 @@ function revision2xml( $rev, $full ) { $fname = 'revision2xml'; wfProfileIn( $fname ); - global $wgParser , $wgUseXMLparser ; # So we can return *real* XML - $xml = " \n"; if( $full ) $xml .= " " . $rev->getId() . "\n"; @@ -166,12 +164,7 @@ function revision2xml( $rev, $full ) { $xml .= " $c\n"; } - $t = $rev->getText() ; - if ( $wgUseXMLparser ) - { - $wgParser->runXMLparser ( $t ) ; - } - $t = xmlsafe( $t ) ; + $t = xmlsafe( $rev->getText() ); $xml .= " $t\n"; $xml .= " \n";