Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -455,6 +455,8 @@ |
456 | 456 | global $wgOut, $wgLang; |
457 | 457 | $flags = $frev->getTags(); |
458 | 458 | $time = $wgLang->date( $frev->getTimestamp(), true ); |
| 459 | + # Set display revision ID |
| 460 | + $wgOut->setRevisionId( $frev->getRevId() ); |
459 | 461 | # Get quality level |
460 | 462 | $quality = FlaggedRevs::isQuality( $flags ); |
461 | 463 | $pristine = FlaggedRevs::isPristine( $flags ); |
— | — | @@ -491,7 +493,6 @@ |
492 | 494 | # Output HTML |
493 | 495 | $this->getReviewNotes( $frev ); |
494 | 496 | $wgOut->addParserOutput( $parserOut ); |
495 | | - $wgOut->setRevisionId( $frev->getRevId() ); |
496 | 497 | # Index the stable version only |
497 | 498 | $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
498 | 499 | } |
— | — | @@ -508,6 +509,8 @@ |
509 | 510 | global $wgOut, $wgLang; |
510 | 511 | $flags = $frev->getTags(); |
511 | 512 | $time = $wgLang->date( $frev->getTimestamp(), true ); |
| 513 | + # Set display revision ID |
| 514 | + $wgOut->setRevisionId( $frev->getRevId() ); |
512 | 515 | # Get quality level |
513 | 516 | $quality = FlaggedRevs::isQuality( $flags ); |
514 | 517 | $pristine = FlaggedRevs::isPristine( $flags ); |
— | — | @@ -557,7 +560,6 @@ |
558 | 561 | # Output HTML |
559 | 562 | $this->getReviewNotes( $frev ); |
560 | 563 | $wgOut->addParserOutput( $parserOut ); |
561 | | - $wgOut->setRevisionId( $frev->getRevId() ); |
562 | 564 | } |
563 | 565 | |
564 | 566 | /** |