Fixed language sorting (again).
authorthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Dec 2001 05:08:03 +0000 (05:08 +0000)
committerthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Dec 2001 05:08:03 +0000 (05:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1901 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/options_display.php

index 784b3487dfb41c2ca841eedf18596e47ce87e78d..5fd5c5ef2679df6d04829326da2e3e46162257e8 100644 (file)
@@ -51,11 +51,10 @@ function load_optpage_data_display() {
     $language_values = array();
     foreach ($languages as $lang_key => $lang_attributes) {
         if (isset($lang_attributes['NAME'])) {
-            $language_values[$lang_attributes['NAME']] = $lang_key;
+            $language_values[$lang_key] = $lang_attributes['NAME'];
         }
     }
     asort($language_values);
-    $language_values = array_flip($language_values);
     $optvals[SMOPT_GRP_GENERAL][] = array(
         'name'    => 'language',
         'caption' => _("Language"),