Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -1186,6 +1186,7 @@ |
1187 | 1187 | // If we are supposed to review after edit, and it was not autoreviewed, |
1188 | 1188 | // and the user can actually make new stable version, take us to the diff... |
1189 | 1189 | if( $wgReviewChangesAfterEdit && $frev && $latest > $frev->getRevId() && $frev->userCanSetFlags() ) { |
| 1190 | + $extraQuery .= $extraQuery ? '&' : ''; |
1190 | 1191 | $extraQuery .= "oldid={$frev->getRevId()}&diff=cur&diffonly=0"; // override diff-only |
1191 | 1192 | // ...otherwise, go to the current revision after completing an edit. |
1192 | 1193 | } else { |
Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php |
— | — | @@ -283,7 +283,17 @@ |
284 | 284 | $wgUser->removeWatch( $this->page ); |
285 | 285 | } |
286 | 286 | |
287 | | - $wgOut->redirect( $this->page->getFullUrl() ); |
| 287 | + $query = ''; |
| 288 | + # Take the user to the diff to make sure an outdated version isn't |
| 289 | + # being set at the default. This is really an issue with configs |
| 290 | + # that only let certain pages be reviewed. |
| 291 | + if( $this->select == FLAGGED_VIS_NORMAL ) { |
| 292 | + $frev = FlaggedRevision::newFromStable( $this->page, FR_MASTER ); |
| 293 | + if( $frev && $frev->getRevId() != $latest ) { |
| 294 | + $query = "oldid={$frev->getRevId()}&diff=cur&diffonly=0"; // override diff-only |
| 295 | + } |
| 296 | + } |
| 297 | + $wgOut->redirect( $this->page->getFullUrl( $query ) ); |
288 | 298 | |
289 | 299 | return true; |
290 | 300 | } |