Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -759,9 +759,13 @@ |
760 | 760 | $record = true; |
761 | 761 | } else { |
762 | 762 | global $wgUseNPPatrol; |
763 | | - # Mark patrolled by default unless this is a new page |
764 | | - # and new page patrol is enabled. |
765 | | - $patrol = !( $wgUseNPPatrol && !empty($rc->mAttribs['rc_new']) ); |
| 763 | + # Mark patrolled by default unless this is a new page and new page patrol |
| 764 | + # is enabled (except when the user has 'autopatrol', then patrol it). |
| 765 | + if( $wgUser->isAllowed('autopatrol') ) { |
| 766 | + $patrol = true; |
| 767 | + } else { |
| 768 | + $patrol = !( $wgUseNPPatrol && !empty($rc->mAttribs['rc_new']) ); |
| 769 | + } |
766 | 770 | } |
767 | 771 | if( $patrol ) { |
768 | 772 | RevisionReview::updateRecentChanges( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'] ); |