r61216 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61215‎ | r61216 | r61217 >
Date:21:44, 18 January 2010
Author:aaron
Status:ok
Tags:
Comment:
Show revreview-pending-nosection only if there are pending edits
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -851,9 +851,11 @@
852852 $frev = $this->article->getStableRev();
853853 if( $frev ) {
854854 $revsSince = FlaggedRevs::getRevCountSince( $this->article, $frev->getRevId() );
855 - $s .= "<div class='flaggedrevs_editnotice plainlinks'>" .
856 - wfMsgExt( 'revreview-pending-nosection', array( 'parseinline' ),
857 - $frev->getRevId(), $revsSince ) . "</div>";
 855+ if( $revsSince ) {
 856+ $s .= "<div class='flaggedrevs_editnotice plainlinks'>" .
 857+ wfMsgExt( 'revreview-pending-nosection', array( 'parseinline' ),
 858+ $frev->getRevId(), $revsSince ) . "</div>";
 859+ }
858860 }
859861 return true;
860862 }

Status & tagging log