r63940 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63939‎ | r63940 | r63941 >
Date:00:46, 19 March 2010
Author:aaron
Status:ok
Tags:
Comment:
Check showRatingIcon() for post-edit notice box
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -347,8 +347,12 @@
348348 if ( !$synced && $wgRequest->getVal( 'shownotice' ) && !$wgUser->isAllowed( 'review' ) ) {
349349 $revsSince = FlaggedRevs::getRevCountSince( $this->article, $srev->getRevId() );
350350 $tooltip = wfMsgHtml( 'revreview-draft-title' );
351 - $pending = $prot . FlaggedRevsXML::draftStatusIcon() .
352 - wfMsgExt( 'revreview-edited', array( 'parseinline' ), $srev->getRevId(), $revsSince );
 351+ $pending = $prot;
 352+ if( self::showRatingIcon() ) {
 353+ $pending .= FlaggedRevsXML::draftStatusIcon();
 354+ }
 355+ $pending .= wfMsgExt( 'revreview-edited',
 356+ array( 'parseinline' ), $srev->getRevId(), $revsSince );
353357 $anchor = $wgRequest->getVal( 'fromsection' );
354358 if( $anchor != null ) {
355359 $section = str_replace( '_', ' ', $anchor ); // prettify

Follow-up revisions

RevisionCommit summaryAuthorDate
r64173MFT r63940-r64172aaron19:43, 25 March 2010

Status & tagging log