r99614 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99613‎ | r99614 | r99615 >
Date:01:07, 12 October 2011
Author:aaron
Status:ok
Tags:
Comment:
Ported in r99584 - 'edit' tab when viewing the stable revision should go to the draft edit form as it did pre-1.18
Modified paths:
  • /trunk/extensions/FlaggedRevs/presentation/FlaggablePageView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/presentation/FlaggablePageView.php
@@ -1221,9 +1221,15 @@
12221222 if ( $pendingEdits ) {
12231223 if ( isset( $views['edit'] ) ) {
12241224 $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+ }
12251228 }
12261229 if ( isset( $views['viewsource'] ) ) {
12271230 $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+ }
12281234 }
12291235 }
12301236 # Add "pending changes" tab if the page is not synced

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99584(bug 31489) - 'Logged-out users might overwrite earlier unsighted revisions d...aaron22:16, 11 October 2011

Status & tagging log