summaryrefslogtreecommitdiff
path: root/includes/actions/RollbackAction.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2013-01-18 16:46:04 +0100
committerPierre Schmitz <pierre@archlinux.de>2013-01-18 16:46:04 +0100
commit63601400e476c6cf43d985f3e7b9864681695ed4 (patch)
treef7846203a952e38aaf66989d0a4702779f549962 /includes/actions/RollbackAction.php
parent8ff01378c9e0207f9169b81966a51def645b6a51 (diff)
Update to MediaWiki 1.20.2
this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'includes/actions/RollbackAction.php')
-rw-r--r--includes/actions/RollbackAction.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/actions/RollbackAction.php b/includes/actions/RollbackAction.php
index ebb34c78..0d9a9027 100644
--- a/includes/actions/RollbackAction.php
+++ b/includes/actions/RollbackAction.php
@@ -63,7 +63,7 @@ class RollbackAction extends FormlessAction {
$current = $details['current'];
if ( $current->getComment() != '' ) {
- $this->getOutput()->addHTML( wfMessage( 'editcomment' )->rawParams(
+ $this->getOutput()->addHTML( $this->msg( 'editcomment' )->rawParams(
Linker::formatComment( $current->getComment() ) )->parse() );
}
}
@@ -97,7 +97,7 @@ class RollbackAction extends FormlessAction {
$this->getOutput()->setRobotPolicy( 'noindex,nofollow' );
if ( $current->getUserText() === '' ) {
- $old = wfMsg( 'rev-deleted-user' );
+ $old = $this->msg( 'rev-deleted-user' )->escaped();
} else {
$old = Linker::userLink( $current->getUser(), $current->getUserText() )
. Linker::userToolLinks( $current->getUser(), $current->getUserText() );
@@ -105,7 +105,7 @@ class RollbackAction extends FormlessAction {
$new = Linker::userLink( $target->getUser(), $target->getUserText() )
. Linker::userToolLinks( $target->getUser(), $target->getUserText() );
- $this->getOutput()->addHTML( wfMsgExt( 'rollback-success', array( 'parse', 'replaceafter' ), $old, $new ) );
+ $this->getOutput()->addHTML( $this->msg( 'rollback-success' )->rawParams( $old, $new )->parseAsBlock() );
$this->getOutput()->returnToMain( false, $this->getTitle() );
if ( !$request->getBool( 'hidediff', false ) && !$this->getUser()->getBoolOption( 'norollbackdiff', false ) ) {