From: Aaron Schulz Date: Sat, 17 Jan 2009 00:53:23 +0000 (+0000) Subject: Improve revertedEdits autopromote check to include undoing of edits X-Git-Tag: 1.31.0-rc.0~43383 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=34828fd7f65a70d9e3298aab235cc851b21302ae;p=lhc%2Fweb%2Fwiklou.git Improve revertedEdits autopromote check to include undoing of edits --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 837447a935..154abbcbd9 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -84,6 +84,7 @@ class EditPage { /* $didSave should be set to true whenever an article was succesfully altered. */ public $didSave = false; + public $undidRev = 0; public $suppressIntro = false; @@ -182,6 +183,7 @@ class EditPage { # If we just undid one rev, use an autosummary if ( $firstrev->mId == $undo ) { $this->summary = wfMsgForContent( 'undo-summary', $undo, $undorev->getUserText() ); + $this->undidRev = $undo; } $this->formtype = 'diff'; } else {