Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -138,10 +138,6 @@ |
139 | 139 | 'accuracy' => 1, 'depth' => 1, 'style' => 1 |
140 | 140 | ); |
141 | 141 | |
142 | | -# At what level of review do patrol marks go away? |
143 | | -# (FR_SIGHTED,FR_QUALITY,FR_PRISTINE) |
144 | | -$wgFlaggedRevsPatrolLevel = FR_SIGHTED; |
145 | | - |
146 | 142 | # Restriction levels for 'autoreview'/'review' rights. |
147 | 143 | # When a level is selected for a page, an edit made by a user |
148 | 144 | # requires approval unless that user has the specified permission. |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -448,15 +448,6 @@ |
449 | 449 | } |
450 | 450 | |
451 | 451 | /** |
452 | | - * Get minimum tier for a revision to count as patrolled |
453 | | - * @return int |
454 | | - */ |
455 | | - public static function getPatrolLevel() { |
456 | | - global $wgFlaggedRevsPatrolLevel; |
457 | | - return (int)$wgFlaggedRevsPatrolLevel; |
458 | | - } |
459 | | - |
460 | | - /** |
461 | 452 | * Get minimum level tags for a tier |
462 | 453 | * @return array |
463 | 454 | */ |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1091,7 +1091,7 @@ |
1092 | 1092 | if ( $fa->isReviewable( FR_MASTER ) ) { |
1093 | 1093 | $revId = $rc->mAttribs['rc_this_oldid']; |
1094 | 1094 | $quality = FlaggedRevs::getRevQuality( $rc->mAttribs['rc_cur_id'], $revId, FR_MASTER ); |
1095 | | - if ( $quality !== false && $quality >= FlaggedRevs::getPatrolLevel() ) { |
| 1095 | + if ( $quality !== false && $quality >= FR_SIGHTED ) { |
1096 | 1096 | RevisionReview::updateRecentChanges( $rc->getTitle(), $revId ); |
1097 | 1097 | $rc->mAttribs['rc_patrolled'] = 1; // make sure irc/email notifs know status |
1098 | 1098 | } |
— | — | @@ -1786,7 +1786,7 @@ |
1787 | 1787 | if ( $wgUser->isAllowed( 'review' ) ) { |
1788 | 1788 | $tables[] = 'flaggedpage_pending'; |
1789 | 1789 | $join_conds['flaggedpage_pending'] = array( 'LEFT JOIN', |
1790 | | - 'fpp_page_id = rc_cur_id AND fpp_quality = ' . FlaggedRevs::getPatrolLevel() ); |
| 1790 | + 'fpp_page_id = rc_cur_id AND fpp_quality = ' . FR_SIGHTED ); |
1791 | 1791 | } |
1792 | 1792 | return true; |
1793 | 1793 | } |
— | — | @@ -1797,7 +1797,7 @@ |
1798 | 1798 | $fields[] = 'fpp_rev_id'; |
1799 | 1799 | $tables[] = 'flaggedpage_pending'; |
1800 | 1800 | $join_conds['flaggedpage_pending'] = array( 'LEFT JOIN', |
1801 | | - 'fpp_page_id = rc_cur_id AND fpp_quality = ' . FlaggedRevs::getPatrolLevel() ); |
| 1801 | + 'fpp_page_id = rc_cur_id AND fpp_quality = ' . FR_SIGHTED ); |
1802 | 1802 | } |
1803 | 1803 | return true; |
1804 | 1804 | } |