r68143 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68142‎ | r68143 | r68144 >
Date:01:14, 17 June 2010
Author:aaron
Status:ok
Tags:
Comment:
Hide [unreviewed page] notice on RC from non-reviewers (bug 24002)
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1986,6 +1986,7 @@
19871987 }
19881988
19891989 public static function addToChangeListLine( &$list, &$articlelink, &$s, RecentChange &$rc ) {
 1990+ global $wgUser;
19901991 $title = $rc->getTitle(); // convenience
19911992 if ( !FlaggedRevs::inReviewNamespace( $title )
19921993 || empty( $rc->mAttribs['rc_this_oldid'] )
@@ -1997,12 +1998,13 @@
19981999 // page is not reviewed
19992000 if ( $rc->mAttribs['fp_stable'] == null ) {
20002001 // Is this a config were pages start off reviewable?
2001 - if ( !FlaggedRevs::stableOnlyIfConfigured() ) {
 2002+ // Hide notice from non-reviewers due to vandalism concerns (bug 24002).
 2003+ if ( !FlaggedRevs::stableOnlyIfConfigured() && $wgUser->isAllowed( 'review' ) ) {
20022004 $rlink = wfMsgHtml( 'revreview-unreviewedpage' );
20032005 $css = 'flaggedrevs-unreviewed';
20042006 }
20052007 // page is reviewed and has pending edits
2006 - } elseif ( $rc->mAttribs['fp_stable'] < $rc->mAttribs['rc_this_oldid'] ) {
 2008+ } elseif ( $rc->mAttribs['rc_this_oldid'] > $rc->mAttribs['fp_stable'] ) {
20072009 $rlink = $list->skin->link(
20082010 $title,
20092011 wfMsgHtml( 'revreview-reviewlink' ),

Status & tagging log