From 868dd9a15aed00bd562ef0860f936e5344f5d1e9 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 14 Jan 2009 20:32:25 +0000 Subject: [PATCH] Follow up r45741 per IAlex comment: OutputPage::wrapWikiMsg() directly adds the html to OutputPage::$mBodytext rather than returning it. --- includes/EditPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index de38703b18..ee16922506 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -177,7 +177,7 @@ class EditPage { } if ( $result ) { # Inform the user of our success and set an automatic edit summary - $this->editFormPageTop .= $wgOut->wrapWikiMsg( '
$1
', 'undo-success' ); + $this->editFormPageTop .= $wgOut->parse( '
' . wfMsgNoTrans( 'undo-success' ) . '
' ); $firstrev = $oldrev->getNext(); # If we just undid one rev, use an autosummary if ( $firstrev->mId == $undo ) { @@ -186,13 +186,13 @@ class EditPage { $this->formtype = 'diff'; } else { # Warn the user that something went wrong - $this->editFormPageTop .= $wgOut->wrapWikiMsg( '
$1
', 'undo-failure' ); + $this->editFormPageTop .= $wgOut->parse( '
' . wfMsgNoTrans( 'undo-failure' ) . '
' ); } } else { // Failed basic sanity checks. // Older revisions may have been removed since the link // was created, or we may simply have got bogus input. - $this->editFormPageTop .= $wgOut->wrapWikiMsg( '
$1
', 'undo-norev' ); + $this->editFormPageTop .= $wgOut->parse( '
' . wfMsgNoTrans( 'undo-norev' ) . '
' ); } } else if ( $section != '' ) { if ( $section == 'new' ) { -- 2.20.1