mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Replace deprecated Hooks::run
Bug: T335536 Change-Id: Ic7f758fc4f65e364aa23b218e5e62a47f1641d8e
This commit is contained in:
parent
159863d15a
commit
ed5cabcb0e
|
@ -15,7 +15,6 @@ use EchoSeenTime;
|
|||
use EchoServices;
|
||||
use EmailNotification;
|
||||
use ExtensionRegistry;
|
||||
use Hooks as MWHooks;
|
||||
use HTMLCheckMatrix;
|
||||
use LinksUpdate;
|
||||
use LogEntry;
|
||||
|
@ -197,7 +196,7 @@ class Hooks implements
|
|||
$wgEnableUserEmail;
|
||||
|
||||
// allow extensions to define their own event
|
||||
MWHooks::run( 'BeforeCreateEchoEvent',
|
||||
MediaWikiServices::getInstance()->getHookContainer()->run( 'BeforeCreateEchoEvent',
|
||||
[ &$wgEchoNotifications, &$wgEchoNotificationCategories, &$wgEchoNotificationIcons ] );
|
||||
|
||||
// Only allow mention status notifications when enabled
|
||||
|
@ -1363,7 +1362,7 @@ class Hooks implements
|
|||
// notifications for talk page messages, disable the new messages alert.
|
||||
if ( $user->isRegistered()
|
||||
&& isset( $wgEchoNotifications['edit-user-talk'] )
|
||||
&& MWHooks::run( 'EchoCanAbortNewMessagesAlert' )
|
||||
&& MediaWikiServices::getInstance()->getHookContainer()->run( 'EchoCanAbortNewMessagesAlert' )
|
||||
) {
|
||||
// hide new messages alert
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue