Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -780,6 +780,16 @@ |
781 | 781 | # Don't do so if an edit was auto-merged in between though... |
782 | 782 | if( $rev->getTimestamp() == $editTimestamp ) { |
783 | 783 | FlaggedRevs::autoReviewEdit( $article, $user, $rev->getText(), $rev, $flags, false ); |
| 784 | + $rcid = $rev->isUnpatrolled(); |
| 785 | + # Make sure it is now marked patrolled... |
| 786 | + if( $rcid ) { |
| 787 | + $dbw = wfGetDB( DB_MASTER ); |
| 788 | + $dbw->update( 'recentchanges', |
| 789 | + array( 'rc_patrolled' => 1 ), |
| 790 | + array( 'rc_id' => $rcid ), |
| 791 | + __METHOD__ |
| 792 | + ); |
| 793 | + } |
784 | 794 | return true; // done! |
785 | 795 | } |
786 | 796 | } |