Rohan013 has uploaded a new change for review. https://gerrit.wikimedia.org/r/143373
Change subject: Checks for each user in the $wgUsersNotifiedOnAllChange list before sending the mail ...................................................................... Checks for each user in the $wgUsersNotifiedOnAllChange list before sending the mail Bug: 67041 Change-Id: I7d53f07ed3dceb5b1c541091fd69beca3fb3e94f --- M includes/UserMailer.php 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/73/143373/1 diff --git a/includes/UserMailer.php b/includes/UserMailer.php index d73f6b4..4a24c7c 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -537,7 +537,10 @@ ), __METHOD__ ); foreach ( $res as $row ) { - $watchers[] = intval( $row->wl_user ); + $username = User::whoIs( intval( $row->wl_user ) ); + if ( !in_array( $username, $wgUsersNotifiedOnAllChanges ) ) { + $watchers[] = intval( $row->wl_user ); + } } if ( $watchers ) { // Update wl_notificationtimestamp for all watching users except the editor -- To view, visit https://gerrit.wikimedia.org/r/143373 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7d53f07ed3dceb5b1c541091fd69beca3fb3e94f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Rohan013 <rohan1...@yahoo.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits