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