From: Andrew Garrett Date: Sun, 7 Jan 2007 04:20:16 +0000 (+0000) Subject: Preview automatically when somebody clicks undo. I would make it do a diff of the... X-Git-Tag: 1.31.0-rc.0~54620 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=1efd8dc7295947731f9fea49b3e9084589e27130;p=lhc%2Fweb%2Fwiklou.git Preview automatically when somebody clicks undo. I would make it do a diff of the undo edit, but I couldn't see an easy way to do this. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 5c36690d6c..13cceb1841 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -122,6 +122,7 @@ class EditPage { # Inform the user of our success and set an automatic edit summary $this->editFormPageTop .= $wgOut->parse( wfMsgNoTrans( 'undo-success' ) ); $this->summary = wfMsgForContent( 'undo-summary', $undo, $undorev->getUserText() ); + $this->formtype = 'preview'; # Preview the result. } else { # Warn the user that something went wrong $this->editFormPageTop .= $wgOut->parse( wfMsgNoTrans( 'undo-failure' ) );