Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -746,15 +746,18 @@ |
747 | 747 | if( empty($rc->mAttribs['rc_this_oldid']) ) { |
748 | 748 | return true; |
749 | 749 | } |
750 | | - $patrol = $record = false; |
751 | 750 | // Is the page reviewable? |
752 | 751 | if( FlaggedRevs::isPageReviewable( $rc->getTitle() ) ) { |
753 | 752 | # Note: pages in reviewable namespace with FR disabled |
754 | 753 | # won't autopatrol. May or may not be useful... |
755 | | - $patrol = FlaggedRevs::revIsFlagged( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'], |
756 | | - GAID_FOR_UPDATE ); |
| 754 | + if( FlaggedRevs::revIsFlagged($rc->getTitle(),$rc->mAttribs['rc_this_oldid'],GAID_FOR_UPDATE) ) { |
| 755 | + RevisionReview::updateRecentChanges( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'] ); |
| 756 | + } |
| 757 | + return true; |
| 758 | + } |
757 | 759 | // Can this be patrolled? |
758 | | - } else if( FlaggedRevs::isPagePatrollable( $rc->getTitle() ) ) { |
| 760 | + $patrol = $record = false; |
| 761 | + if( FlaggedRevs::isPagePatrollable( $rc->getTitle() ) ) { |
759 | 762 | $patrol = $wgUser->isAllowed('autopatrolother') || $wgUser->isAllowed('bot'); |
760 | 763 | $record = true; |
761 | 764 | } else { |