From 2f5d5edebfdcf307b872d8276e4ddaf456bdca0e Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Mon, 19 Jul 2010 05:57:23 +0000 Subject: [PATCH] Fix fatal error from undefined $wgParser. --- includes/api/ApiQueryRevisions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 8a389dfb08..d4f89e2324 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -455,6 +455,7 @@ class ApiQueryRevisions extends ApiQueryBase { } if ( $this->expandTemplates ) { + global $wgParser; $text = $wgParser->preprocess( $text, $title, new ParserOptions() ); } ApiResult::setContent( $vals, $text ); -- 2.20.1