*
* @file
*/
+use MediaWiki\MediaWikiServices;
use MediaWiki\Linker\LinkTarget;
/**
$this->watched = [];
$this->notificationtimestamps = [];
- $store = WatchedItemStore::getDefaultInstance();
+ $store = MediaWikiServices::getInstance()->getWatchedItemStore();
$timestamps = $store->getNotificationTimestampsBatch( $user, $this->everything );
if ( $this->fld_watched ) {
$countOptions['minimumWatchers'] = $unwatchedPageThreshold;
}
- $this->watchers = WatchedItemStore::getDefaultInstance()->countWatchersMultiple(
+ $this->watchers = MediaWikiServices::getInstance()->getWatchedItemStore()->countWatchersMultiple(
$this->everything,
$countOptions
);
)
);
}
-
- $this->visitingwatchers = WatchedItemStore::getDefaultInstance()->countVisitingWatchersMultiple(
+ $store = MediaWikiServices::getInstance()->getWatchedItemStore();
+ $this->visitingwatchers = $store->countVisitingWatchersMultiple(
$titlesWithThresholds,
!$canUnwatchedpages ? $unwatchedPageThreshold : null
);