summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarracuda Team2012-09-16 12:32:04 (GMT)
committerHerman van Rink2013-09-25 08:42:45 (GMT)
commit6b2df104f51151fda83f499ea5c9ad1c3149b76f (patch)
tree0cdca8c707264fa5ad540d25d477151c01ba33cf
parentd749d742ee5752971121bdd09cfb44e272e2311f (diff)
D8 changed user_preferred_language() to user_preferred_langcode()
-rw-r--r--platform/drupal/install_8.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/drupal/install_8.inc b/platform/drupal/install_8.inc
index a562c2d..0ed9674 100644
--- a/platform/drupal/install_8.inc
+++ b/platform/drupal/install_8.inc
@@ -22,7 +22,7 @@ function install_send_welcome_mail($url, $account, $language, $client_email, $on
'!date' => format_date(time()), '!login_uri' => url('user', array('absolute' => TRUE)),
'!edit_uri' => url('user/'. $account->uid .'/edit', array('absolute' => TRUE)));
- $mail_success = drupal_mail('install', 'welcome-admin', $account->mail, user_preferred_language($account), $mail_params, $from, TRUE);
+ $mail_success = drupal_mail('install', 'welcome-admin', $account->mail, user_preferred_langcode($account), $mail_params, $from, TRUE);
if ($mail_success) {
drush_log(t('Sent welcome mail to @client', array('@client' => $client_email)), 'message');