(bug 43820) Content also needed for prop=revisions&rvdiffto=
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 10 Jan 2013 14:24:39 +0000 (09:24 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 10 Jan 2013 14:24:39 +0000 (09:24 -0500)
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

index 33000e1..e161f30 100644 (file)
@@ -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()