- /**
- * Is $wgUser watching this page?
- *
- * @deprecated since 1.20; use User::isWatched() instead.
- * @return bool
- */
- public function userIsWatching() {
- global $wgUser;
-
- if ( is_null( $this->mWatched ) ) {
- if ( NS_SPECIAL == $this->mNamespace || !$wgUser->isLoggedIn() ) {
- $this->mWatched = false;
- } else {
- $this->mWatched = $wgUser->isWatched( $this );
- }
- }
- return $this->mWatched;
- }
-