*/
use MediaWiki\Linker\LinkTarget;
+use MediaWiki\MediaWikiServices;
+
/**
* Represents a title within MediaWiki.
* Optionally may contain an interwiki designation or namespace.
$this->mNotificationTimestamp = [];
}
- $watchedItem = WatchedItemStore::getDefaultInstance()->getWatchedItem( $user, $this );
+ $store = MediaWikiServices::getInstance()->getWatchedItemStore();
+ $watchedItem = $store->getWatchedItem( $user, $this );
if ( $watchedItem ) {
$this->mNotificationTimestamp[$uid] = $watchedItem->getNotificationTimestamp();
} else {