Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -440,6 +440,7 @@ |
441 | 441 | } |
442 | 442 | if ( $this->fld_content && !$revision->isDeleted( Revision::DELETED_TEXT ) ) { |
443 | 443 | if ( $this->generateXML ) { |
| 444 | + global $wgParser; |
444 | 445 | $wgParser->startExternalParse( $title, new ParserOptions(), OT_PREPROCESS ); |
445 | 446 | $dom = $wgParser->preprocessToDom( $text ); |
446 | 447 | if ( is_callable( array( $dom, 'saveXML' ) ) ) { |