From: aude Date: Thu, 18 Oct 2012 21:33:34 +0000 (+0200) Subject: fix bug 41122, provide missing revId param in ApiQueryRevisions X-Git-Tag: 1.31.0-rc.0~21956 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=8bac2d0e7c898a86860c5e2d86ebdc7c4e8bf7ae;p=lhc%2Fweb%2Fwiklou.git fix bug 41122, provide missing revId param in ApiQueryRevisions Change-Id: I8e6b4f845f15bb230965e0e765fdc0f15f67c014 --- diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 5aff1e95fa..881b79721b 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -540,7 +540,7 @@ class ApiQueryRevisions extends ApiQueryBase { } } if ( $this->parseContent ) { - $po = $content->getParserOutput( $title, ParserOptions::newFromContext( $this->getContext() ) ); + $po = $content->getParserOutput( $title, $revision->getId(), ParserOptions::newFromContext( $this->getContext() ) ); $text = $po->getText(); }