From be27874185b34420191b12802b3e1e4ef40f01e9 Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 20 Dec 2001 19:48:32 +0000 Subject: [PATCH] Sorted themes git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1871 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/options_display.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/options_display.php b/src/options_display.php index 1ab11cb4..3c62f70c 100644 --- a/src/options_display.php +++ b/src/options_display.php @@ -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"), -- 2.25.1