Index: branches/wmf/1.19wmf1/extensions/FlaggedRevs/backend/FlaggedRevs.hooks.php |
— | — | @@ -605,10 +605,11 @@ |
606 | 606 | // Is the page reviewable? |
607 | 607 | if ( $fa->isReviewable() ) { |
608 | 608 | $revId = $rc->mAttribs['rc_this_oldid']; |
609 | | - $quality = FlaggedRevision::getRevQuality( $revId, FR_MASTER ); |
| 609 | + // If the edit we just made was reviewed, then it's the stable rev |
| 610 | + $frev = FlaggedRevision::newFromTitle( $rc->getTitle(), $revId, FR_MASTER ); |
610 | 611 | // Reviewed => patrolled |
611 | | - if ( $quality !== false && $quality >= FR_CHECKED ) { |
612 | | - RevisionReviewForm::updateRecentChanges( $rc, 'patrol', $fa->getStableRev() ); |
| 612 | + if ( $frev ) { |
| 613 | + RevisionReviewForm::updateRecentChanges( $rc, 'patrol', $frev ); |
613 | 614 | $rc->mAttribs['rc_patrolled'] = 1; // make sure irc/email notifs know status |
614 | 615 | } |
615 | 616 | return true; |