X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fmail%2FEmailNotification.php;h=acf2c2e44644f1e538b5da7e411e7b201ae50ca4;hp=987239be7842c6732220a0fe756bc101ce06d456;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=751bac3786c561225f121b607189ccd865416e1b diff --git a/includes/mail/EmailNotification.php b/includes/mail/EmailNotification.php index 987239be78..acf2c2e446 100644 --- a/includes/mail/EmailNotification.php +++ b/includes/mail/EmailNotification.php @@ -225,10 +225,9 @@ class EmailNotification { && $watchingUser->getId() != $userTalkId && !in_array( $watchingUser->getName(), $wgUsersNotifiedOnAllChanges ) && !( $wgBlockDisablesLogin && $watchingUser->isBlocked() ) + && Hooks::run( 'SendWatchlistEmailNotification', [ $watchingUser, $title, $this ] ) ) { - if ( Hooks::run( 'SendWatchlistEmailNotification', [ $watchingUser, $title, $this ] ) ) { - $this->compose( $watchingUser, self::WATCHLIST ); - } + $this->compose( $watchingUser, self::WATCHLIST ); } } }