diff --git a/Notifier.php b/Notifier.php index 53c6e747c..f0988f63b 100644 --- a/Notifier.php +++ b/Notifier.php @@ -31,6 +31,11 @@ class EchoNotifier { * @return bool */ public static function notifyWithEmail( $user, $event ) { + global $wgEnableEmail; + + if ( !$wgEnableEmail ) { + return false; + } // No valid email address or email notification if ( !$user->isEmailConfirmed() || $user->getOption( 'echo-email-frequency' ) < 0 ) { return false;