mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-18 02:40:50 +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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function notifyWithEmail( $user, $event ) {
|
public static function notifyWithEmail( $user, $event ) {
|
||||||
|
global $wgEnableEmail;
|
||||||
|
|
||||||
|
if ( !$wgEnableEmail ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// No valid email address or email notification
|
// No valid email address or email notification
|
||||||
if ( !$user->isEmailConfirmed() || $user->getOption( 'echo-email-frequency' ) < 0 ) {
|
if ( !$user->isEmailConfirmed() || $user->getOption( 'echo-email-frequency' ) < 0 ) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue