Index: branches/wmf/1.18wmf1/extensions/FlaggedRevs/presentation/FlaggedPageView.php |
— | — | @@ -1212,9 +1212,15 @@ |
1213 | 1213 | if ( $pendingEdits ) { |
1214 | 1214 | if ( isset( $views['edit'] ) ) { |
1215 | 1215 | $views['edit']['text'] = wfMsg( 'revreview-edit' ); |
| 1216 | + if ( $this->showingStable() ) { // bug 31489 |
| 1217 | + $views['edit']['href'] = $skin->getTitle()->getFullURL( 'action=edit' ); |
| 1218 | + } |
1216 | 1219 | } |
1217 | | - if ( isset( $views['viewsource'] ) ) { |
| 1220 | + if ( isset( $views['viewsource'] ) ) { // bug 31489 |
1218 | 1221 | $views['viewsource']['text'] = wfMsg( 'revreview-source' ); |
| 1222 | + if ( $this->showingStable() ) { |
| 1223 | + $views['viewsource']['href'] = $skin->getTitle()->getFullURL( 'action=edit' ); |
| 1224 | + } |
1219 | 1225 | } |
1220 | 1226 | } |
1221 | 1227 | # Add "pending changes" tab if the page is not synced |