Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -1275,13 +1275,16 @@ |
1276 | 1276 | $msg = parent::isQuality( $flags ) ? 'revreview-newest-quality' : 'revreview-newest-basic'; |
1277 | 1277 | $tag = wfMsgExt($msg, array('parseinline'), $tfrev->fr_rev_id, $time, $revs_since ); |
1278 | 1278 | # 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>'; |
1280 | 1281 | $tag .= '<span id="mw-revisionratings" style="display:block;">' . |
1281 | 1282 | wfMsg('revreview-oldrating') . parent::addTagRatings( $flags ) . |
1282 | 1283 | '</span>'; |
1283 | 1284 | $wgOut->addHTML( '<div id="mw-revisiontag" class="flaggedrevs_notice plainlinks">' . $tag . '</div>' ); |
1284 | 1285 | // 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() ) { |
1286 | 1289 | # Grab the flags for this revision |
1287 | 1290 | $flags = $wgFlaggedRevs->getFlagsForRevision( $tfrev->fr_rev_id ); |
1288 | 1291 | # Check if user is allowed to renew the stable version. |