Commit 5644ad02 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#156143 noted by Arancaytar, pathc by myself: user_language() was named user_preferred_language()

parent ee701b33
......@@ -199,7 +199,7 @@ function locale_user($type, $edit, &$user, $category = NULL) {
$languages = $languages['1'];
// If the user is being created, we set the user language to the page language.
$user_language = $user ? user_language($user) : $language;
$user_preferred_language = $user ? user_preferred_language($user) : $language;
$names = array();
foreach ($languages as $langcode => $language) {
......@@ -214,7 +214,7 @@ function locale_user($type, $edit, &$user, $category = NULL) {
$form['locale']['language'] = array(
'#type' => 'radios',
'#title' => t('Language'),
'#default_value' => $user_language->language,
'#default_value' => $user_preferred_language->language,
'#options' => $names,
'#description' => t('Sets the default site interface and e-mail language for this account.'),
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment