mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Made Echo respect $wgEnableEmail = false;
Bug: T96143 Change-Id: I09f7cadb98633e171c23072f7282fecf377cd648
This commit is contained in:
parent
952b2958a4
commit
f208548f83
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue