Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix switching language in compiled version

  • Loading branch information...
commit 57d0c4c6f5f637f395ea2ca5aa5b1fd53be99956 1 parent ebbb35a
@vrana authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  adminer/include/lang.inc.php
  2. +1 −1  compile.php
View
1  adminer/include/lang.inc.php
@@ -81,6 +81,7 @@ function switch_lang() {
if (isset($_POST["lang"]) && $_SESSION["token"] == $_POST["token"]) { // $token and $error not yet available
cookie("adminer_lang", $_POST["lang"]);
$_SESSION["lang"] = $_POST["lang"]; // cookies may be disabled
+ $_SESSION["translations"] = array(); // used in compiled version
redirect(remove_from_uri());
}
View
2  compile.php
@@ -119,7 +119,7 @@ function put_file_lang($match) {
$translations = array();
$_SESSION["translations_version"] = ' . $translations_version . ';
}
-if ($_GET["lang"] || !$translations) {
+if (!$translations) {
switch ($LANG) {' . $return . '
}
$translations = array();
Please sign in to comment.
Something went wrong with that request. Please try again.