mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
PHRAS-3256 take in account langage in mail
This commit is contained in:
@@ -531,6 +531,10 @@ class UserController extends Controller
|
||||
$receiver = new Receiver(null, $user->getEmail());
|
||||
$mail = MailSuccessEmailUpdate::create($this->app, $receiver, null, $message);
|
||||
|
||||
if (($locale = $user->getLocale()) != null) {
|
||||
$mail->setLocale($locale);
|
||||
}
|
||||
|
||||
$this->deliver($mail);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user