r53455 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53454‎ | r53455 | r53456 >
Date:20:57, 18 July 2009
Author:aaron
Status:ok
Tags:
Comment:
Set OutputPage revid sooner
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -455,6 +455,8 @@
456456 global $wgOut, $wgLang;
457457 $flags = $frev->getTags();
458458 $time = $wgLang->date( $frev->getTimestamp(), true );
 459+ # Set display revision ID
 460+ $wgOut->setRevisionId( $frev->getRevId() );
459461 # Get quality level
460462 $quality = FlaggedRevs::isQuality( $flags );
461463 $pristine = FlaggedRevs::isPristine( $flags );
@@ -491,7 +493,6 @@
492494 # Output HTML
493495 $this->getReviewNotes( $frev );
494496 $wgOut->addParserOutput( $parserOut );
495 - $wgOut->setRevisionId( $frev->getRevId() );
496497 # Index the stable version only
497498 $wgOut->setRobotPolicy( 'noindex,nofollow' );
498499 }
@@ -508,6 +509,8 @@
509510 global $wgOut, $wgLang;
510511 $flags = $frev->getTags();
511512 $time = $wgLang->date( $frev->getTimestamp(), true );
 513+ # Set display revision ID
 514+ $wgOut->setRevisionId( $frev->getRevId() );
512515 # Get quality level
513516 $quality = FlaggedRevs::isQuality( $flags );
514517 $pristine = FlaggedRevs::isPristine( $flags );
@@ -557,7 +560,6 @@
558561 # Output HTML
559562 $this->getReviewNotes( $frev );
560563 $wgOut->addParserOutput( $parserOut );
561 - $wgOut->setRevisionId( $frev->getRevId() );
562564 }
563565
564566 /**

Status & tagging log