X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Factions%2FUnwatchAction.php;h=7f043e467659147c094eb92d0ce8d8a239dd4dd8;hb=39bdb0cb4905eaebd24ebb0ed22728fa4b94e0ee;hp=0a8628dd2623b39f076a92cfe7c09f33922f6ecc;hpb=a756c3b753e34a479da69a88a3176fd2d3e7cfa2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/UnwatchAction.php b/includes/actions/UnwatchAction.php index 0a8628dd26..7f043e4676 100644 --- a/includes/actions/UnwatchAction.php +++ b/includes/actions/UnwatchAction.php @@ -50,6 +50,11 @@ 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() { + return true; } }