aboutsummaryrefslogtreecommitdiffstats
path: root/includes/actions/UnwatchAction.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/actions/UnwatchAction.php')
-rw-r--r--includes/actions/UnwatchAction.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/actions/UnwatchAction.php b/includes/actions/UnwatchAction.php
index f8f1dc1f4404..7f043e467659 100644
--- a/includes/actions/UnwatchAction.php
+++ b/includes/actions/UnwatchAction.php
@@ -50,7 +50,8 @@ class UnwatchAction extends WatchAction {
}
public function onSuccess() {
- $this->getOutput()->addWikiMsg( 'removedwatchtext', $this->getTitle()->getPrefixedText() );
+ $msgKey = $this->getTitle()->isTalkPage() ? 'removedwatchtext-talk' : 'removedwatchtext';
+ $this->getOutput()->addWikiMsg( $msgKey, $this->getTitle()->getPrefixedText() );
}
public function doesWrites() {