From 9f3863c50739ef3e83cb4ee0652b89e82bf0ac42 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 10 Jan 2013 09:24:39 -0500 Subject: [PATCH] (bug 43820) Content also needed for prop=revisions&rvdiffto= It was somehow overlooked that prop=revisions&rvdiffto= also requires that the content for the current revision be fetched. Change-Id: Ie1d718458da8cdb6ba63bd7ea512db3b299fc1e2 --- includes/api/ApiQueryRevisions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 33000e10f0..e161f30e1a 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -493,7 +493,7 @@ class ApiQueryRevisions extends ApiQueryBase { $content = null; global $wgParser; - if ( $this->fld_content || !is_null( $this->difftotext ) ) { + if ( $this->fld_content || !is_null( $this->diffto ) || !is_null( $this->difftotext ) ) { $content = $revision->getContent(); // Expand templates after getting section content because // template-added sections don't count and Parser::preprocess() -- 2.20.1