* @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
$title,
[
'editor' => $editor->getName(),
- 'editorID' => $editor->getID(),
+ 'editorID' => $editor->getId(),
'timestamp' => $timestamp,
'summary' => $summary,
'minorEdit' => $minorEdit,
if ( $watchingUser->getOption( 'enotifwatchlistpages' )
&& ( !$minorEdit || $watchingUser->getOption( 'enotifminoredits' ) )
&& $watchingUser->isEmailConfirmed()
- && $watchingUser->getID() != $userTalkId
+ && $watchingUser->getId() != $userTalkId
&& !in_array( $watchingUser->getName(), $wgUsersNotifiedOnAllChanges )
&& !( $wgBlockDisablesLogin && $watchingUser->isBlocked() )
) {