Fix to show current language rather than always Default
authorsimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 17 Mar 2002 11:55:00 +0000 (11:55 +0000)
committersimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 17 Mar 2002 11:55:00 +0000 (11:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2596 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/options_display.php

index fd075d54a6f1146735c9ea031d43329994728c7c..9cc1027e3e93f4bb0494ff63d969a337dffefb99 100644 (file)
@@ -18,7 +18,8 @@ define('SMOPT_GRP_MESSAGE', 2);
 
 /* Define the optpage load function for the display options page. */
 function load_optpage_data_display() {
-    global $theme, $language, $languages, $js_autodetect_results, $default_use_mdn;
+    global $theme, $language, $languages, $js_autodetect_results,
+           $default_use_mdn, $squirrelmail_language;
 
     /* Build a simple array into which we will build options. */
     $optgrps = array();
@@ -78,6 +79,7 @@ function load_optpage_data_display() {
     asort($language_values);
     $language_values =
         array_merge(array('' => _("Default")), $language_values);
+    $language = $squirrelmail_language;
     $optvals[SMOPT_GRP_GENERAL][] = array(
         'name'    => 'language',
         'caption' => _("Language"),