Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php |
— | — | @@ -697,7 +697,8 @@ |
698 | 698 | $text = $rev->getText(); |
699 | 699 | $title = $article->getTitle(); |
700 | 700 | $options = FlaggedRevs::makeParserOptions(); |
701 | | - $pOutput = $wgParser->parse( $text, $title, $options ); |
| 701 | + $pOutput = $wgParser->parse( |
| 702 | + $text, $title, $options, true, true, $article->getLatest() ); |
702 | 703 | # Might as well save the cache while we're at it |
703 | 704 | if ( $rev->isCurrent() && $wgEnableParserCache ) { |
704 | 705 | $parserCache->save( $pOutput, $article, $user ); |
Index: trunk/extensions/FlaggedRevs/api/ApiReview.php |
— | — | @@ -79,7 +79,8 @@ |
80 | 80 | global $wgParser; |
81 | 81 | $text = $article->getContent(); |
82 | 82 | $options = FlaggedRevs::makeParserOptions(); |
83 | | - $parserOutput = $wgParser->parse( $text, $title, $options ); |
| 83 | + $parserOutput = $wgParser->parse( |
| 84 | + $text, $title, $options, true, true, $article->getLatest() ); |
84 | 85 | } |
85 | 86 | // Set version parameters for review submission |
86 | 87 | list( $templateParams, $imageParams, $fileVersion ) = |