X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FArticle.php;h=aaa9f0b2c81f70212c6864cef690d76544016d36;hb=a7e28d201191e7ca8a51d10140f3f84c266b197d;hp=c7d350acaf8bbd922f071770b594154831053f69;hpb=250da851d1ab6d01a7c53a6e947b699e54b4b470;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Article.php b/includes/Article.php index c7d350acaf..aaa9f0b2c8 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1449,9 +1449,9 @@ class Article extends Page { $this->doDelete( $reason, $suppress ); if ( $request->getCheck( 'wpWatch' ) && $user->isLoggedIn() ) { - $this->doWatch(); + WatchAction::doWatch( $title, $user ); } elseif ( $title->userIsWatching() ) { - $this->doUnwatch(); + WatchAction::doUnwatch( $title, $user ); } return;