mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
Merge "Making sure email notifications are based on categories as well"
This commit is contained in:
commit
af416d8fcb
|
@ -58,8 +58,9 @@ class EchoNotifier {
|
|||
// No valid email address
|
||||
return false;
|
||||
}
|
||||
// See if the user wants to receive emails for this type of event
|
||||
if ( $user->getOption( 'echo-subscriptions-email-' . $event->getType() ) ) {
|
||||
// See if the user wants to receive emails for this category of event
|
||||
$category = EchoNotificationController::getNotificationCategory( $event->getType() );
|
||||
if ( $user->getOption( 'echo-subscriptions-email-' . $category ) ) {
|
||||
global $wgEchoEnableEmailBatch, $wgPasswordSender, $wgPasswordSenderName;
|
||||
|
||||
// batched email notification
|
||||
|
|
Loading…
Reference in a new issue