r103190 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103189‎ | r103190 | r103191 >
Date:16:36, 15 November 2011
Author:reedy
Status:ok
Tags:
Comment:
REL1_18 MFT r100153
Modified paths:
  • /branches/REL1_18/extensions/FlaggedRevs/presentation/FlaggedPageView.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/extensions/FlaggedRevs/presentation/FlaggedPageView.php
@@ -1076,9 +1076,9 @@
10771077 }
10781078 # Get the revision being displayed
10791079 $rev = false;
1080 - if ( $this->reviewFormRev ) {
 1080+ if ( $this->reviewFormRev ) { //diff
10811081 $rev = $this->reviewFormRev; // $newRev for diffs stored here
1082 - } elseif ( $this->out->getRevisionId() ) {
 1082+ } elseif ( $this->out->getRevisionId() ) { // page view
10831083 $rev = Revision::newFromId( $this->out->getRevisionId() );
10841084 }
10851085 # Build the review form as needed
@@ -1371,6 +1371,9 @@
13721372 return true;
13731373 }
13741374 $srev = $this->article->getStableRev();
 1375+ if ( $srev && $this->isReviewableDiff ) {
 1376+ $this->reviewFormRev = $newRev;
 1377+ }
13751378 # Check if this is a diff-to-stable. If so:
13761379 # (a) prompt reviewers to review the changes
13771380 # (b) list template/file changes if only includes are pending
@@ -1379,7 +1382,6 @@
13801383 && !$this->article->stableVersionIsSynced() ) // pending changes
13811384 {
13821385 $changeDiv = '';
1383 - $this->reviewFormRev = $newRev;
13841386 $changeList = array();
13851387 # Page not synced only due to includes?
13861388 if ( !$this->article->revsArePending() ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r1031911.18wmf1 Merge r103190 which is a manual merge of r100153reedy16:38, 15 November 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100153Fixed missing review form for diffs against non-stable but accepted revs with...aaron20:19, 18 October 2011

Status & tagging log