fix bug 41122, provide missing revId param in ApiQueryRevisions
authoraude <aude.wiki@gmail.com>
Thu, 18 Oct 2012 21:33:34 +0000 (23:33 +0200)
committeraude <aude.wiki@gmail.com>
Thu, 18 Oct 2012 21:33:34 +0000 (23:33 +0200)
Change-Id: I8e6b4f845f15bb230965e0e765fdc0f15f67c014

includes/api/ApiQueryRevisions.php

index 5aff1e9..881b797 100644 (file)
@@ -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();
                        }