mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "Use MailAddress::newFromUser()"
This commit is contained in:
commit
d495389a1c
|
@ -86,7 +86,7 @@ class EchoNotifier {
|
|||
// send single notification if the email wasn't added to queue for bundling
|
||||
if ( !$addedToQueue ) {
|
||||
// instant email notification
|
||||
$toAddress = new MailAddress( $user );
|
||||
$toAddress = MailAddress::newFromUser( $user );
|
||||
$fromAddress = new MailAddress( $wgNotificationSender, EchoHooks::getNotificationSenderName() );
|
||||
$replyAddress = new MailAddress( $wgNotificationSender, $wgNotificationReplyName );
|
||||
// Since we are sending a single email, should set the bundle hash to null
|
||||
|
|
|
@ -217,7 +217,7 @@ abstract class MWEchoEmailBatch {
|
|||
->inLanguage( $this->mUser->getOption( 'language' ) )
|
||||
->params( $count, $this->count )->text();
|
||||
|
||||
$toAddress = new MailAddress( $this->mUser );
|
||||
$toAddress = MailAddress::newFromUser( $this->mUser );
|
||||
$fromAddress = new MailAddress( $wgNotificationSender, EchoHooks::getNotificationSenderName() );
|
||||
$replyAddress = new MailAddress( $wgNotificationSender, $wgNotificationReplyName );
|
||||
|
||||
|
|
|
@ -243,7 +243,7 @@ abstract class MWEchoEmailBundler {
|
|||
|
||||
global $wgNotificationSender, $wgNotificationReplyName;
|
||||
|
||||
$toAddress = new MailAddress( $this->mUser );
|
||||
$toAddress = MailAddress::newFromUser( $this->mUser );
|
||||
$fromAddress = new MailAddress( $wgNotificationSender, EchoHooks::getNotificationSenderName() );
|
||||
$replyAddress = new MailAddress( $wgNotificationSender, $wgNotificationReplyName );
|
||||
|
||||
|
|
Loading…
Reference in a new issue