Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -941,12 +941,11 @@ |
942 | 942 | } |
943 | 943 | // Is the page reviewable? |
944 | 944 | if( FlaggedRevs::isPageReviewable( $rc->getTitle() ) ) { |
945 | | - global $wgFlaggedRevsPatrolLevel; |
946 | 945 | # Note: pages in reviewable namespace with FR disabled |
947 | 946 | # won't autopatrol. May or may not be useful... |
948 | 947 | $quality = FlaggedRevs::getRevQuality( $rc->mAttribs['rc_cur_id'], |
949 | 948 | $rc->mAttribs['rc_this_oldid'], GAID_FOR_UPDATE ); |
950 | | - if( $quality !== false && $quality >= $wgFlaggedRevsPatrolLevel ) { |
| 949 | + if( $quality !== false && $quality >= FlaggedRevs::getPatrolLevel() ) { |
951 | 950 | RevisionReview::updateRecentChanges( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'] ); |
952 | 951 | $rc->mAttribs['rc_patrolled'] = 1; // make sure irc/email notifs now status |
953 | 952 | } |