mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
PHRAS-3256 take in account langage in mail
This commit is contained in:
@@ -187,6 +187,10 @@ class UserCreateCommand extends Command
|
||||
$mail->setButtonUrl('http://'.$servername.'/login/renew-password/?token='.$token->getValue());
|
||||
$mail->setLogin($user->getLogin());
|
||||
|
||||
if (($locale = $user->getLocale()) != null) {
|
||||
$mail->setLocale($locale);
|
||||
}
|
||||
|
||||
$this->deliver($mail);
|
||||
}
|
||||
|
||||
@@ -205,6 +209,10 @@ class UserCreateCommand extends Command
|
||||
$mail->setButtonUrl('http://'.$servername.'/login/register-confirm/?code='.$token->getValue());
|
||||
$mail->setExpiration($token->getExpiration());
|
||||
|
||||
if (($locale = $user->getLocale()) != null) {
|
||||
$mail->setLocale($locale);
|
||||
}
|
||||
|
||||
$this->deliver($mail);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user