X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Foptions_display.php;h=75184af5c7a4706eadce28ec835832fcd46ee068;hp=2e03483ef3cb563331389d4920e4b8caeb592157;hb=15e6162eacc97158393bc75aed3afeb7b19c24a6;hpb=e697b6cc39af08f80d3ee3743c9d4088791af634 diff --git a/src/options_display.php b/src/options_display.php index 2e03483e..75184af5 100644 --- a/src/options_display.php +++ b/src/options_display.php @@ -1,15 +1,15 @@ $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"), @@ -46,7 +48,7 @@ function load_optpage_data_display() { 'save' => 'save_option_theme' ); - $language_values = array(); + $language_values = array(''); foreach ($languages as $lang_key => $lang_attributes) { if (isset($lang_attributes['NAME'])) { $language_values[$lang_key] = $lang_attributes['NAME'];