* @author Tim Starling
* @author Luke Welling lwelling@wikimedia.org
*/
+use MediaWiki\Linker\LinkTarget;
+
+use MediaWiki\MediaWikiServices;
/**
* This module processes the email notifications when the current page is
if ( !$config->get( 'EnotifWatchlist' ) && !$config->get( 'ShowUpdatedMarker' ) ) {
return [];
}
- return WatchedItemStore::getDefaultInstance()->updateNotificationTimestamp(
+ return MediaWikiServices::getInstance()->getWatchedItemStore()->updateNotificationTimestamp(
$editor,
$linkTarget,
$timestamp
$config = RequestContext::getMain()->getConfig();
$watchers = [];
if ( $config->get( 'EnotifWatchlist' ) || $config->get( 'ShowUpdatedMarker' ) ) {
- $watchers = WatchedItemStore::getDefaultInstance()->updateNotificationTimestamp(
+ $watchers = MediaWikiServices::getInstance()->getWatchedItemStore()->updateNotificationTimestamp(
$editor,
$title,
$timestamp