X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FArticle.php;h=fdf0820663c5b8681c09bca43721f86b2f983e57;hb=c29fd59775f597847a57f598a76de48c63952243;hp=6a3e41cb3c89345118717603bc783c75724ad350;hpb=7201be76e70a1193cc8a1b4d06bcdc35a81c047c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Article.php b/includes/Article.php index 6a3e41cb3c..fdf0820663 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1,6 +1,22 @@ , 'follow' => + * @return Array: 'index' => \, 'follow' => \ */ public static function formatRobotPolicy( $policy ) { if ( is_array( $policy ) ) { @@ -1329,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; @@ -1640,6 +1683,7 @@ class Article extends Page { /** * Handle action=purge * @deprecated since 1.19 + * @return Action|bool|null false if the action is disabled, null if it is not recognised */ public function purge() { return Action::factory( 'purge', $this )->show();