From: Brad Jorsch Date: Thu, 10 Jan 2013 14:24:39 +0000 (-0500) Subject: (bug 43820) Content also needed for prop=revisions&rvdiffto= X-Git-Tag: 1.31.0-rc.0~21081 X-Git-Url: http://git.cyclocoop.org//%27http:/ie7-js.googlecode.com/svn/test/index.html/%27?a=commitdiff_plain;h=9f3863c50739ef3e83cb4ee0652b89e82bf0ac42;p=lhc%2Fweb%2Fwiklou.git (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 --- 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()