dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix links problem on Special:Search"
[lhc/web/wiklou.git]
/
includes
/
actions
/
WatchAction.php
diff --git
a/includes/actions/WatchAction.php
b/includes/actions/WatchAction.php
index
890740f
..
23505c0
100644
(file)
--- a/
includes/actions/WatchAction.php
+++ b/
includes/actions/WatchAction.php
@@
-67,7
+67,8
@@
class WatchAction extends FormAction {
}
public function onSuccess() {
}
public function onSuccess() {
- $this->getOutput()->addWikiMsg( 'addedwatchtext', $this->getTitle()->getPrefixedText() );
+ $msgKey = $this->getTitle()->isTalkPage() ? 'addedwatchtext-talk' : 'addedwatchtext';
+ $this->getOutput()->addWikiMsg( $msgKey, $this->getTitle()->getPrefixedText() );
}
/* Static utility methods */
}
/* Static utility methods */