From abce6ed742a301aef251717c9878b7e0399078d7 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 3 Jun 2012 15:41:57 +0200 Subject: [PATCH] Replace calls to deprecated Article::doWatch and Article::doUnwatch Change-Id: I7e87b24144cbff01fdf8b40c5e7da783c0c57f24 --- includes/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1