mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Use MailAddress::newFromUser()
Change-Id: I7c6ce9aade27dae66732274979d8baa9eeb0b17c
This commit is contained in:
parent
3cd4e6bbd9
commit
d196cbf94e
|
@ -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