Index: EditPage.php =================================================================== --- EditPage.php (revision 18323) +++ EditPage.php (working copy) @@ -127,7 +128,13 @@ } else { $this->editFormPageTop .= '

'.wfMsg('undosucceeded')."

\n" . '

'.wfMsg('explainundosucceeded').'

'; - $this->summary = wfMsgForContent('undo-summary', $undo, $undorev->getUserText()); + $firstrev = $oldrev->getNext(); + #if we just undid one rev + if ( $firstrev->mId == $undoto ) { + $this->summary = wfMsgForContent('undo-summary', $undoto, $undorev->getUserText()); + } else { + $this->summary = wfMsgForContent('undo-summary_set', $firstrev->mId, $undoto, $firstrev->getUserText() , $undorev->getUserText()); + } } } }