From 195a811466f6d831777fa53ae3a37ac5ecaf91d4 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 6 Sep 2012 23:07:31 -0700 Subject: [PATCH] Simplify switch lang form --- adminer/include/lang.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/lang.inc.php b/adminer/include/lang.inc.php index 375777b7..db645086 100644 --- a/adminer/include/lang.inc.php +++ b/adminer/include/lang.inc.php @@ -73,7 +73,7 @@ function switch_lang() { global $LANG, $langs; echo "
\n
"; hidden_fields($_GET, array('lang')); - echo lang('Language') . ": " . html_select("lang", $langs, $LANG, "var loc = location.search.replace(/[?&]lang=[^&]*/, ''); location.search = loc + (loc ? '&' : '') + 'lang=' + this.value;"); + echo lang('Language') . ": " . html_select("lang", $langs, $LANG, "this.form.submit();"); echo " \n"; echo "
\n
\n"; }