r57338 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57337‎ | r57338 | r57339 >
Date:18:25, 3 October 2009
Author:aaron
Status:ok
Tags:
Comment:
Use getPatrolLevel() function instead of global
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -941,12 +941,11 @@
942942 }
943943 // Is the page reviewable?
944944 if( FlaggedRevs::isPageReviewable( $rc->getTitle() ) ) {
945 - global $wgFlaggedRevsPatrolLevel;
946945 # Note: pages in reviewable namespace with FR disabled
947946 # won't autopatrol. May or may not be useful...
948947 $quality = FlaggedRevs::getRevQuality( $rc->mAttribs['rc_cur_id'],
949948 $rc->mAttribs['rc_this_oldid'], GAID_FOR_UPDATE );
950 - if( $quality !== false && $quality >= $wgFlaggedRevsPatrolLevel ) {
 949+ if( $quality !== false && $quality >= FlaggedRevs::getPatrolLevel() ) {
951950 RevisionReview::updateRecentChanges( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'] );
952951 $rc->mAttribs['rc_patrolled'] = 1; // make sure irc/email notifs now status
953952 }

Status & tagging log