From: Platonides Date: Sun, 3 Jun 2012 13:41:57 +0000 (+0200) Subject: Replace calls to deprecated Article::doWatch and Article::doUnwatch X-Git-Tag: 1.31.0-rc.0~23418^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=abce6ed742a301aef251717c9878b7e0399078d7;p=lhc%2Fweb%2Fwiklou.git Replace calls to deprecated Article::doWatch and Article::doUnwatch Change-Id: I7e87b24144cbff01fdf8b40c5e7da783c0c57f24 --- diff --git a/includes/Article.php b/includes/Article.php index ded8c497f2..fdf0820663 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1372,9 +1372,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;