Made Echo respect $wgEnableEmail = false;

Bug: T96143
Change-Id: I09f7cadb98633e171c23072f7282fecf377cd648
This commit is contained in:
Tony Thomas 2015-04-18 19:13:57 +05:30
parent 952b2958a4
commit f208548f83

View file

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