From 1efd8dc7295947731f9fea49b3e9084589e27130 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Sun, 7 Jan 2007 04:20:16 +0000 Subject: [PATCH] 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. --- includes/EditPage.php | 1 + 1 file changed, 1 insertion(+) 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' ) ); -- 2.20.1