From: Platonides Date: Fri, 7 Dec 2012 18:33:34 +0000 (+0100) Subject: Replace deprecated Title::userIsWatching() X-Git-Tag: 1.31.0-rc.0~21379^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=48cf6446a2dfba74ed933dd0ea357af54e860ce8;p=lhc%2Fweb%2Fwiklou.git Replace deprecated Title::userIsWatching() Change-Id: I74203e4ed51be6fe72414d1a0b95b8370aaf0720 --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 9643ba7a30..e844a1e9ab 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -501,7 +501,7 @@ class ProtectionForm { " . Xml::checkLabel( wfMessage( 'watchthis' )->text(), 'mwProtectWatch', 'mwProtectWatch', - $this->mTitle->userIsWatching() || $wgUser->getOption( 'watchdefault' ) ) . + $wgUser->isWatched( $this->mTitle ) || $wgUser->getOption( 'watchdefault' ) ) . " "; }