From 5513102df76697e1f84feb8c5ccdfebac1ffef40 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 29 Mar 2012 10:57:00 +0200 Subject: [PATCH] Use local context to get messages Change-Id: I9bad983b6deffa1f79770663010252730d1b1eb5 --- includes/actions/WatchAction.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/actions/WatchAction.php b/includes/actions/WatchAction.php index 63d9b1517b..e2636452d5 100644 --- a/includes/actions/WatchAction.php +++ b/includes/actions/WatchAction.php @@ -31,7 +31,7 @@ class WatchAction extends FormAction { } protected function getDescription() { - return wfMsgHtml( 'addwatch' ); + return $this->msg( 'addwatch' )->escaped(); } /** @@ -136,11 +136,11 @@ class WatchAction extends FormAction { } protected function alterForm( HTMLForm $form ) { - $form->setSubmitText( wfMsg( 'confirm-watch-button' ) ); + $form->setSubmitTextMsg( 'confirm-watch-button' ); } protected function preText() { - return wfMessage( 'confirm-watch-top' )->parse(); + return $this->msg( 'confirm-watch-top' )->parse(); } public function onSuccess() { @@ -155,7 +155,7 @@ class UnwatchAction extends WatchAction { } protected function getDescription() { - return wfMsg( 'removewatch' ); + return $this->msg( 'removewatch' )->escaped(); } public function onSubmit( $data ) { @@ -166,11 +166,11 @@ class UnwatchAction extends WatchAction { } protected function alterForm( HTMLForm $form ) { - $form->setSubmitText( wfMsg( 'confirm-unwatch-button' ) ); + $form->setSubmitTextMsg( 'confirm-unwatch-button' ); } protected function preText() { - return wfMessage( 'confirm-unwatch-top' )->parse(); + return $this->msg( 'confirm-unwatch-top' )->parse(); } public function onSuccess() { -- 2.20.1