From: River Tarnell Date: Sun, 23 Apr 2006 05:19:32 +0000 (+0000) Subject: watchlist edit form should run UnwatchArticle hooks X-Git-Tag: 1.31.0-rc.0~57396 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=f5c56b6fb5413772bb710fedf53830564baed571;p=lhc%2Fweb%2Fwiklou.git watchlist edit form should run UnwatchArticle hooks --- diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index c8a734ea38..4f37fc0dc8 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -90,6 +90,7 @@ function wfSpecialWatchlist( $par ) { if( $wl->removeWatch() === false ) { $wgOut->addHTML( "
\n" . wfMsg( 'couldntremove', htmlspecialchars($one) ) ); } else { + wfRunHooks('UnwatchArticle', array(&$wgUser, new Article($t))); $wgOut->addHTML( ' (' . htmlspecialchars($one) . ')' ); } } else {