Merge "Making sure email notifications are based on categories as well"

This commit is contained in:
Bsitu 2013-03-07 19:02:17 +00:00 committed by Gerrit Code Review
commit af416d8fcb

View file

@ -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