X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmail%2FEmailNotification.php;h=1d0bdf6d779cde4003067a94d8b0f90550880783;hb=2ff4b95bd19fe3a272d55ad53690e6ddfbcf067f;hp=fe24c34ac23d0fad0a7b8022045c497412b17661;hpb=a0803c9bc551631c8a35bf2d99705a724cb62039;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/mail/EmailNotification.php b/includes/mail/EmailNotification.php index fe24c34ac2..1d0bdf6d77 100644 --- a/includes/mail/EmailNotification.php +++ b/includes/mail/EmailNotification.php @@ -23,6 +23,9 @@ * @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 @@ -91,7 +94,7 @@ class EmailNotification { if ( !$config->get( 'EnotifWatchlist' ) && !$config->get( 'ShowUpdatedMarker' ) ) { return []; } - return WatchedItemStore::getDefaultInstance()->updateNotificationTimestamp( + return MediaWikiServices::getInstance()->getWatchedItemStore()->updateNotificationTimestamp( $editor, $linkTarget, $timestamp @@ -124,7 +127,7 @@ class EmailNotification { $config = RequestContext::getMain()->getConfig(); $watchers = []; if ( $config->get( 'EnotifWatchlist' ) || $config->get( 'ShowUpdatedMarker' ) ) { - $watchers = WatchedItemStore::getDefaultInstance()->updateNotificationTimestamp( + $watchers = MediaWikiServices::getInstance()->getWatchedItemStore()->updateNotificationTimestamp( $editor, $title, $timestamp