Sorted themes
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 20 Dec 2001 19:48:32 +0000 (19:48 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 20 Dec 2001 19:48:32 +0000 (19:48 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1871 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/options_display.php

index 1ab11cb49c2cd8e2883328c2042f33413d169856..3c62f70caba29406f3d46ff067dfacbb33824b04 100644 (file)
@@ -35,8 +35,10 @@ function load_optpage_data_display() {
     /* Load the theme option. */
     $theme_values = array();
     foreach ($theme as $theme_key => $theme_attributes) {
-        $theme_values[$theme_attributes['PATH']] = $theme_attributes['NAME'];
+        $theme_values[$theme_attributes['NAME']] = $theme_attributes['PATH'];
     }
+    ksort($theme_values);
+    $theme_values = array_flip($theme_values);
     $optvals[SMOPT_GRP_GENERAL][] = array(
         'name'    => 'chosen_theme',
         'caption' => _("Theme"),