Merge "Use MailAddress::newFromUser()"

This commit is contained in:
jenkins-bot 2014-10-20 17:25:11 +00:00 committed by Gerrit Code Review
commit d495389a1c
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 );

View file

@ -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 );