From ab784f649bf36fa39eb3c20a79912006e224b024 Mon Sep 17 00:00:00 2001 From: Kaldari Date: Thu, 7 Mar 2013 10:32:29 -0800 Subject: [PATCH] Making sure email notifications are based on categories as well Change-Id: Ib7cee67c940a4bb1b770f509edd995cb0631950d --- Notifier.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Notifier.php b/Notifier.php index 5029c2a8c..99bc76ac8 100644 --- a/Notifier.php +++ b/Notifier.php @@ -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