r45345 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45344‎ | r45345 | r45346 >
Date:21:05, 2 January 2009
Author:aaron
Status:ok
Tags:
Comment:
(bug 16862) Non-content pages sometimes do not get autopatrolled
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -759,9 +759,13 @@
760760 $record = true;
761761 } else {
762762 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+ }
766770 }
767771 if( $patrol ) {
768772 RevisionReview::updateRecentChanges( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'] );

Status & tagging log