summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2007-11-24 21:19:10 (GMT)
committerGábor Hojtsy2007-11-24 21:19:10 (GMT)
commit6efb418313774c498113a6a5d559a8a15e854109 (patch)
tree97d37b7f5105b9610e3e4120e55a477812cce8a2
parent6383dcc7253ecad5ca56e46724439cd23444fba1 (diff)
#193905 report by greggles, patch by myself: the user account page changed language to the last language set up
-rw-r--r--modules/locale/locale.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index ea86925..a07e5af 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -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',