From 34828fd7f65a70d9e3298aab235cc851b21302ae Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 17 Jan 2009 00:53:23 +0000 Subject: [PATCH] Improve revertedEdits autopromote check to include undoing of edits --- includes/EditPage.php | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.20.1