Preview automatically when somebody clicks undo. I would make it do a diff of the...
authorAndrew Garrett <werdna@users.mediawiki.org>
Sun, 7 Jan 2007 04:20:16 +0000 (04:20 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Sun, 7 Jan 2007 04:20:16 +0000 (04:20 +0000)
includes/EditPage.php

index 5c36690..13cceb1 100644 (file)
@@ -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' ) );