Index: trunk/extensions/FlaggedRevs/presentation/FlaggablePageView.php |
— | — | @@ -1221,9 +1221,15 @@ |
1222 | 1222 | if ( $pendingEdits ) { |
1223 | 1223 | if ( isset( $views['edit'] ) ) { |
1224 | 1224 | $views['edit']['text'] = wfMsg( 'revreview-edit' ); |
| 1225 | + if ( $this->showingStable() ) { // bug 31489; direct user to current |
| 1226 | + $views['edit']['href'] = $skin->getTitle()->getFullURL( 'action=edit' ); |
| 1227 | + } |
1225 | 1228 | } |
1226 | 1229 | if ( isset( $views['viewsource'] ) ) { |
1227 | 1230 | $views['viewsource']['text'] = wfMsg( 'revreview-source' ); |
| 1231 | + if ( $this->showingStable() ) { // bug 31489; direct user to current |
| 1232 | + $views['viewsource']['href'] = $skin->getTitle()->getFullURL( 'action=edit' ); |
| 1233 | + } |
1228 | 1234 | } |
1229 | 1235 | } |
1230 | 1236 | # Add "pending changes" tab if the page is not synced |