Replace deprecated Title::userIsWatching()
authorPlatonides <platonides@gmail.com>
Fri, 7 Dec 2012 18:33:34 +0000 (19:33 +0100)
committerPlatonides <platonides@gmail.com>
Fri, 7 Dec 2012 18:34:48 +0000 (19:34 +0100)
Change-Id: I74203e4ed51be6fe72414d1a0b95b8370aaf0720

includes/ProtectionForm.php

index 9643ba7..e844a1e 100644 (file)
@@ -501,7 +501,7 @@ class ProtectionForm {
                                        <td class='mw-input'>" .
                                                Xml::checkLabel( wfMessage( 'watchthis' )->text(),
                                                        'mwProtectWatch', 'mwProtectWatch',
-                                                       $this->mTitle->userIsWatching() || $wgUser->getOption( 'watchdefault' ) ) .
+                                                       $wgUser->isWatched( $this->mTitle ) || $wgUser->getOption( 'watchdefault' ) ) .
                                        "</td>
                                </tr>";
                        }