Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php |
— | — | @@ -608,7 +608,7 @@ |
609 | 609 | $dbw->begin(); |
610 | 610 | $flaggedRevision->insertOn( $fulltext, $tmpset, $imgset ); |
611 | 611 | # Update recent changes |
612 | | - self::updateRecentChanges( $this->page, $rev->getId(), $this->rcid ); |
| 612 | + self::updateRecentChanges( $this->page, $rev->getId(), $this->rcid, true ); |
613 | 613 | # Update the article review log |
614 | 614 | self::updateLog( $this->page, $this->dims, $this->oflags, $this->comment, $this->oldid, $oldSvId, true ); |
615 | 615 | |
— | — | @@ -686,6 +686,8 @@ |
687 | 687 | # Wipe versioning params |
688 | 688 | $dbw->delete( 'flaggedtemplates', array( 'ft_rev_id' => $frev->getRevId() ) ); |
689 | 689 | $dbw->delete( 'flaggedimages', array( 'fi_rev_id' => $frev->getRevId() ) ); |
| 690 | + # Update recent changes |
| 691 | + self::updateRecentChanges( $this->page, $frev->getRevId(), false, false ); |
690 | 692 | |
691 | 693 | # Get current stable version ID (for logging) |
692 | 694 | $oldSv = FlaggedRevision::newFromStable( $this->page, FR_MASTER ); |
— | — | @@ -797,12 +799,12 @@ |
798 | 800 | return true; |
799 | 801 | } |
800 | 802 | |
801 | | - public static function updateRecentChanges( $title, $revId, $rcId = false ) { |
| 803 | + public static function updateRecentChanges( $title, $revId, $rcId=false, $patrol=true ) { |
802 | 804 | wfProfileIn( __METHOD__ ); |
803 | 805 | $dbw = wfGetDB( DB_MASTER ); |
804 | 806 | # Olders edits be marked as patrolled now... |
805 | 807 | $dbw->update( 'recentchanges', |
806 | | - array( 'rc_patrolled' => 1 ), |
| 808 | + array( 'rc_patrolled' => $patrol ? 1 : 0 ), |
807 | 809 | array( 'rc_namespace' => $title->getNamespace(), |
808 | 810 | 'rc_title' => $title->getDBKey(), |
809 | 811 | 'rc_this_oldid <= ' . intval($revId) ), |