r18907 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r18906‎ | r18907 | r18908 >
Date:04:36, 7 January 2007
Author:werdna
Status:old
Tags:
Comment:
Restore 18905, but instead of displaying the Preview, display Show Changes. Also, tweaked the undo messages to make them make more sense and more accurately convey what has happened.
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.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 = 'diff';
126127 } else {
127128 # Warn the user that something went wrong
128129 $this->editFormPageTop .= $wgOut->parse( wfMsgNoTrans( 'undo-failure' ) );
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1021,7 +1021,8 @@
10221022 You can go back and edit an existing page, or [[Special:Userlogin|log in or create an account]].',
10231023
10241024 # "Undo" feature
1025 -'undo-success' => 'The edit has been undone. Please confirm, and then save the changes below.',
 1025+'undo-success' => 'The edit can be undone. Please check the diff below to verify that this is what you want to do, and then save the changes below to finish undoing
 1026+the edit.',
10261027 'undo-failure' => 'The edit could not be undone due to conflicting intermediate edits.',
10271028 'undo-summary' => 'Undo revision $1 by [[Special:Contributions/$2]] ([[User talk:$2]])',
10281029