Index: EditPage.php
===================================================================
--- EditPage.php	(revision 18323)
+++ EditPage.php	(working copy)
@@ -127,7 +128,13 @@
 					} else {
 						$this->editFormPageTop .= '<h2>'.wfMsg('undosucceeded')."</h2>\n" .
 										'<p>'.wfMsg('explainundosucceeded').'</p>';
-						$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());
+						}
 					}
 				}
 			}