r69301 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69300‎ | r69301 | r69302 >
Date:00:48, 13 July 2010
Author:aaron
Status:ok
Tags:
Comment:
Fixed missing rev IDs in parse() calls
Modified paths:
  • /trunk/extensions/FlaggedRevs/api/ApiReview.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php
@@ -697,7 +697,8 @@
698698 $text = $rev->getText();
699699 $title = $article->getTitle();
700700 $options = FlaggedRevs::makeParserOptions();
701 - $pOutput = $wgParser->parse( $text, $title, $options );
 701+ $pOutput = $wgParser->parse(
 702+ $text, $title, $options, true, true, $article->getLatest() );
702703 # Might as well save the cache while we're at it
703704 if ( $rev->isCurrent() && $wgEnableParserCache ) {
704705 $parserCache->save( $pOutput, $article, $user );
Index: trunk/extensions/FlaggedRevs/api/ApiReview.php
@@ -79,7 +79,8 @@
8080 global $wgParser;
8181 $text = $article->getContent();
8282 $options = FlaggedRevs::makeParserOptions();
83 - $parserOutput = $wgParser->parse( $text, $title, $options );
 83+ $parserOutput = $wgParser->parse(
 84+ $text, $title, $options, true, true, $article->getLatest() );
8485 }
8586 // Set version parameters for review submission
8687 list( $templateParams, $imageParams, $fileVersion ) =

Status & tagging log