From: Andrew Garrett Date: Wed, 18 Jul 2012 19:25:02 +0000 (-0700) Subject: Undo feature: Add a wpUndidRevision field that can be used to distinguish (undo)... X-Git-Tag: 1.31.0-rc.0~22996^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=d9d67b35723ad2c2e129c17b6c70aac2f8df7bff;p=lhc%2Fweb%2Fwiklou.git Undo feature: Add a wpUndidRevision field that can be used to distinguish (undo) edits from other edits Change-Id: I85d485d89ab87c9478552183ffdb10b0bfaad648 --- diff --git a/includes/EditPage.php b/includes/EditPage.php index f03415310b..b4a67924b3 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1837,6 +1837,10 @@ class EditPage { $wgOut->addHTML( Html::hidden( 'wpIgnoreBlankSummary', true ) ); } + if ( $this->undidRev ) { + $wgOut->addHTML( Html::hidden( 'wpUndidRevision', $this->undidRev ) ); + } + if ( $this->hasPresetSummary ) { // If a summary has been preset using &summary= we dont want to prompt for // a different summary. Only prompt for a summary if the summary is blanked.