r24928 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24927‎ | r24928 | r24929 >
Date:01:51, 20 August 2007
Author:aaron
Status:old
Tags:
Comment:
Show message when editing latest only (don't include stable unless it's on top)
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -1275,13 +1275,16 @@
12761276 $msg = parent::isQuality( $flags ) ? 'revreview-newest-quality' : 'revreview-newest-basic';
12771277 $tag = wfMsgExt($msg, array('parseinline'), $tfrev->fr_rev_id, $time, $revs_since );
12781278 # Hide clutter
1279 - $tag .= ' <a id="mw-revisiontoggle" style="display:none;" href="javascript:toggleRevRatings()">' . wfMsg('revreview-toggle') . '</a>';
 1279+ $tag .= ' <a id="mw-revisiontoggle" style="display:none;" href="javascript:toggleRevRatings()">' .
 1280+ wfMsg('revreview-toggle') . '</a>';
12801281 $tag .= '<span id="mw-revisionratings" style="display:block;">' .
12811282 wfMsg('revreview-oldrating') . parent::addTagRatings( $flags ) .
12821283 '</span>';
12831284 $wgOut->addHTML( '<div id="mw-revisiontag" class="flaggedrevs_notice plainlinks">' . $tag . '</div>' );
12841285 // If this will be autoreviewed, notify the user...
1285 - if( $wgFlaggedRevsAutoReview && $wgUser->isAllowed( 'review' ) && $revid==$tfrev->fr_rev_id ) {
 1286+ if( !$wgFlaggedRevsAutoReview )
 1287+ return true;
 1288+ if( $wgUser->isAllowed('review') && $revid==$tfrev->fr_rev_id && $revid==$editform->mArticle->getLatest() ) {
12861289 # Grab the flags for this revision
12871290 $flags = $wgFlaggedRevs->getFlagsForRevision( $tfrev->fr_rev_id );
12881291 # Check if user is allowed to renew the stable version.

Status & tagging log