r67189 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67188‎ | r67189 | r67190 >
Date:16:21, 1 June 2010
Author:ialex
Status:ok
Tags:
Comment:
Fixed fatal error because of undefined $wgParser variable
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryRevisions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryRevisions.php
@@ -440,6 +440,7 @@
441441 }
442442 if ( $this->fld_content && !$revision->isDeleted( Revision::DELETED_TEXT ) ) {
443443 if ( $this->generateXML ) {
 444+ global $wgParser;
444445 $wgParser->startExternalParse( $title, new ParserOptions(), OT_PREPROCESS );
445446 $dom = $wgParser->preprocessToDom( $text );
446447 if ( is_callable( array( $dom, 'saveXML' ) ) ) {

Status & tagging log