summaryrefslogtreecommitdiff
path: root/includes/actions/WatchAction.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/actions/WatchAction.php')
-rw-r--r--includes/actions/WatchAction.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/actions/WatchAction.php b/includes/actions/WatchAction.php
index 63d9b151..e2636452 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() {