Replace calls to deprecated Article::doWatch and Article::doUnwatch
authorPlatonides <platonides@gmail.com>
Sun, 3 Jun 2012 13:41:57 +0000 (15:41 +0200)
committerPlatonides <platonides@gmail.com>
Sun, 3 Jun 2012 13:41:57 +0000 (15:41 +0200)
Change-Id: I7e87b24144cbff01fdf8b40c5e7da783c0c57f24

includes/Article.php

index ded8c49..fdf0820 100644 (file)
@@ -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;