X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_display.php;h=05da3841520d6fe66ef038fe9ba28f85d93f8811;hb=3f0442ee56710dea5eca5c4d6f828f4175428acf;hp=c351a990b569ceb69f93da59781c876c042364b3;hpb=895905c0f766ea03e85deab260b4bb1522dd0e3c;p=squirrelmail.git diff --git a/src/options_display.php b/src/options_display.php index c351a990..05da3841 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"), @@ -52,6 +54,9 @@ function load_optpage_data_display() { $language_values[$lang_key] = $lang_attributes['NAME']; } } + asort($language_values); + $language_values = + array_merge(array('' => _("Default")), $language_values); $optvals[SMOPT_GRP_GENERAL][] = array( 'name' => 'language', 'caption' => _("Language"), @@ -71,11 +76,10 @@ function load_optpage_data_display() { SMPREF_JS_OFF => _("Never")) ); - $js_autodetect_script = " - - "; + $js_autodetect_script = + "\n"; $js_autodetect_results = SMPREF_JS_OFF; $optvals[SMOPT_GRP_GENERAL][] = array( 'name' => 'js_autodetect_results',