r47435 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47434‎ | r47435 | r47436 >
Date:08:42, 18 February 2009
Author:aaron
Status:ok
Tags:
Comment:
Fix for r47402: make sure the rev is also mark patrolled
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -780,6 +780,16 @@
781781 # Don't do so if an edit was auto-merged in between though...
782782 if( $rev->getTimestamp() == $editTimestamp ) {
783783 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+ }
784794 return true; // done!
785795 }
786796 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r47402(bug 17545) Allowing sighting of a page with null edit & the review checkboxaaron00:23, 18 February 2009

Status & tagging log