From 8bac2d0e7c898a86860c5e2d86ebdc7c4e8bf7ae Mon Sep 17 00:00:00 2001 From: aude Date: Thu, 18 Oct 2012 23:33:34 +0200 Subject: [PATCH] fix bug 41122, provide missing revId param in ApiQueryRevisions Change-Id: I8e6b4f845f15bb230965e0e765fdc0f15f67c014 --- 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 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(); } -- 2.20.1