Skip to content
Snippets Groups Projects
Commit 8146a3f3 authored by git's avatar git Committed by Joseph Olstad
Browse files

Issue #2912113 by akalam, joseph.olstad, sano, ansgar: User should recive...

Issue #2912113 by akalam, joseph.olstad, sano, ansgar: User should recive mails in the account preferred language
parent c879d272
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
function i18n_user_mail_alter(&$message) {
if ($message['module'] == 'user') {
$user_preferred = language_default();
if (isset(user_preferred_language($message['params']['account']))) {
if (isset($message['params']['account'])) {
$user_preferred = user_preferred_language($message['params']['account']);
}
$language = (isset($message['language']) ? $message['language'] : $user_preferred);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment