1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Fix switching language in compiled version

This commit is contained in:
Jakub Vrana
2012-09-16 06:08:00 -07:00
parent ebbb35a0c3
commit 57d0c4c6f5
2 changed files with 2 additions and 1 deletions

View File

@@ -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());
}