Fixed fatal error because of undefined $wgParser variable
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 1 Jun 2010 16:21:00 +0000 (16:21 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 1 Jun 2010 16:21:00 +0000 (16:21 +0000)
includes/api/ApiQueryRevisions.php

index f167a07..0793826 100644 (file)
@@ -440,6 +440,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                }
                if ( $this->fld_content && !$revision->isDeleted( Revision::DELETED_TEXT ) ) {
                        if ( $this->generateXML ) {
+                               global $wgParser;
                                $wgParser->startExternalParse( $title, new ParserOptions(), OT_PREPROCESS );
                                $dom = $wgParser->preprocessToDom( $text );
                                if ( is_callable( array( $dom, 'saveXML' ) ) ) {