watchlist edit form should run UnwatchArticle hooks
authorRiver Tarnell <river@users.mediawiki.org>
Sun, 23 Apr 2006 05:19:32 +0000 (05:19 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Sun, 23 Apr 2006 05:19:32 +0000 (05:19 +0000)
includes/SpecialWatchlist.php

index c8a734e..4f37fc0 100644 (file)
@@ -90,6 +90,7 @@ function wfSpecialWatchlist( $par ) {
                                if( $wl->removeWatch() === false ) {
                                        $wgOut->addHTML( "<br />\n" . wfMsg( 'couldntremove', htmlspecialchars($one) ) );
                                } else {
+                                       wfRunHooks('UnwatchArticle', array(&$wgUser, new Article($t)));
                                        $wgOut->addHTML( ' (' . htmlspecialchars($one) . ')' );
                                }
                        } else {