From: Jason Richey Date: Wed, 15 Oct 2008 20:31:53 +0000 (+0000) Subject: added "UnwatchArticleComplete" hook to watchlisteditor so that it gets called when... X-Git-Tag: 1.31.0-rc.0~44738 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=bda882c26a0b40d3b3fdd4189b16cbdadf3ebbbd;p=lhc%2Fweb%2Fwiklou.git added "UnwatchArticleComplete" hook to watchlisteditor so that it gets called when users use the editor rather than clicking an "unwatch" link --- diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index fcfdb78294..f3e41da62a 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -323,6 +323,8 @@ class WatchlistEditor { ), __METHOD__ ); + $article = new Article($title); + wfRunHooks('UnwatchArticleComplete',array(&$user,&$article)); } } }