From 317fbb57189424695ea5a17ae30dd67899f23e28 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 1 Jun 2010 16:21:00 +0000 Subject: [PATCH] Fixed fatal error because of undefined $wgParser variable --- includes/api/ApiQueryRevisions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index f167a07586..079382696c 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -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' ) ) ) { -- 2.20.1