r61183 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61182‎ | r61183 | r61184 >
Date:23:43, 17 January 2010
Author:aaron
Status:ok
Tags:
Comment:
Fix for pendingEditNotice()
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevsXML.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevsXML.php
@@ -445,6 +445,9 @@
446446 */
447447 public static function pendingEditNotice( $flaggedArticle, $frev, $revsSince ) {
448448 global $wgLang;
 449+ if( $revsSince < 1 ) {
 450+ return ''; // only for pending edits
 451+ }
449452 $flags = $frev->getTags();
450453 $quality = FlaggedRevs::isQuality( $flags );
451454 $time = $wgLang->date( $frev->getTimestamp(), true );
@@ -452,7 +455,6 @@
453456 $msg = $quality
454457 ? 'revreview-pending-quality'
455458 : 'revreview-pending-basic';
456 - $msg .= ( $revsSince == 0 ) ? '-i' : '';
457459 $tag = wfMsgExt( $msg, array( 'parseinline' ), $frev->getRevId(), $time, $revsSince );
458460 return $tag;
459461 }

Status & tagging log