summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-09-26 16:01:28 (GMT)
committerAlex Pott2016-09-26 16:01:28 (GMT)
commit3153a4e40f17320a5016e250337060957d00bb6b (patch)
tree27872e4a8585c7c7901408b4dd68ccaf897f3cf5
parent1975fe0892ec65bbbc04e29eb3227036941764ac (diff)
Issue #2806523 by eiriksm: Reduce duplication in user_mail
-rw-r--r--core/modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index 1e9f539..90b813f 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -913,7 +913,7 @@ function user_mail($key, &$message, $params) {
$langcode = $message['langcode'];
$variables = array('user' => $params['account']);
- $language = \Drupal::languageManager()->getLanguage($params['account']->getPreferredLangcode());
+ $language = $language_manager->getLanguage($params['account']->getPreferredLangcode());
$original_language = $language_manager->getConfigOverrideLanguage();
$language_manager->setConfigOverrideLanguage($language);
$mail_config = \Drupal::config('user.mail');