Commit 6efb4183 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#193905 report by greggles, patch by myself: the user account page changed...

#193905 report by greggles, patch by myself: the user account page changed language to the last language set up
parent 6383dcc7
......@@ -204,9 +204,9 @@ function locale_user($type, $edit, &$user, $category = NULL) {
$user_preferred_language = $user ? user_preferred_language($user) : $language;
$names = array();
foreach ($languages as $langcode => $language) {
$name = t($language->name);
$names[$langcode] = $name . ($language->native != $name ? ' ('. $language->native .')' : '');
foreach ($languages as $langcode => $item) {
$name = t($item->name);
$names[$langcode] = $name . ($item->native != $name ? ' ('. $item->native .')' : '');
}
$form['locale'] = array(
'#type' => 'fieldset',
......
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