From: Alexandre Emsenhuber Date: Tue, 1 Jun 2010 16:21:00 +0000 (+0000) Subject: Fixed fatal error because of undefined $wgParser variable X-Git-Tag: 1.31.0-rc.0~36647 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=317fbb57189424695ea5a17ae30dd67899f23e28;p=lhc%2Fweb%2Fwiklou.git Fixed fatal error because of undefined $wgParser variable --- 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' ) ) ) {