#Give a warning
$this->editFormPageTop .= "<h2>" . wfMsg('undofailed') . "</h2>\n" .
'<p><strong class="error">'.wfMsg('explainundofailed').'</strong></p>';
+ } else {
+ $this->editFormPageTop .= '<h2>'.wfMsg('undosucceeded')."</h2>\n" .
+ '<p>'.wfMsg('explainundosucceeded').'</p>';
+ $this->summary = wfMsgForContent('undo-summary', $undo, $undorev->getUserText());
}
}
}
*/
function initialiseForm() {
$this->edittime = $this->mArticle->getTimestamp();
- $this->textbox1 = $this->getContent();
$this->summary = '';
+ $this->textbox1 = $this->getContent();
if ( !$this->mArticle->exists() && $this->mArticle->mTitle->getNamespace() == NS_MEDIAWIKI )
$this->textbox1 = wfMsgWeirdKey( $this->mArticle->mTitle->getText() ) ;
wfProxyCheck();
You can go back and edit an existing page, or [[Special:Userlogin|log in or create an account]].',
'undofailed' => 'Undo Failed',
'explainundofailed' => 'The edit could not be undone because of conflicting intermediate edits. Please manually undo the edits.',
+'undosucceeded' => 'Undo Succeeded',
+'explainundosucceeded' => 'The edit was successfully undone. Please click save to apply this change.',
+'undo-summary' => 'Undo revision $1 by [[Special:Contributions/$2]] ([[User talk:$2]])',
# Account creation failure
'cantcreateaccounttitle' => 'Can\'t create account',