git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1871
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/* Load the theme option. */
$theme_values = array();
foreach ($theme as $theme_key => $theme_attributes) {
/* 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"),
$optvals[SMOPT_GRP_GENERAL][] = array(
'name' => 'chosen_theme',
'caption' => _("Theme"),