* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Query module to get information about the currently logged-in user
*
}
if ( isset( $this->prop['unreadcount'] ) ) {
- $unreadNotifications = WatchedItemStore::getDefaultInstance()->countUnreadNotifications(
+ $store = MediaWikiServices::getInstance()->getWatchedItemStore();
+ $unreadNotifications = $store->countUnreadNotifications(
$user,
self::WL_UNREAD_LIMIT
);