r18905 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r18904‎ | r18905 | r18906 >
Date:04:20, 7 January 2007
Author:werdna
Status:old
Tags:
Comment:
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.
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -122,6 +122,7 @@
123123 # Inform the user of our success and set an automatic edit summary
124124 $this->editFormPageTop .= $wgOut->parse( wfMsgNoTrans( 'undo-success' ) );
125125 $this->summary = wfMsgForContent( 'undo-summary', $undo, $undorev->getUserText() );
 126+ $this->formtype = 'preview'; # Preview the result.
126127 } else {
127128 # Warn the user that something went wrong
128129 $this->editFormPageTop .= $wgOut->parse( wfMsgNoTrans( 'undo-failure' ) );