From: Jakub Vrana Date: Sat, 15 Mar 2025 01:32:00 +0000 (+0100) Subject: Fix bs,ru,sr,uk single lang version after f2ce6c0 X-Git-Tag: v5.0.6~43 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=1fd8aa885b577f85883f30452a7b1c608f049300;p=adminer.git Fix bs,ru,sr,uk single lang version after f2ce6c0 --- diff --git a/compile.php b/compile.php index 1edfd169..9169b1d6 100755 --- a/compile.php +++ b/compile.php @@ -117,7 +117,7 @@ header("Cache-Control: immutable"); function lang(\$translation, \$number = null) { if (is_array(\$translation)) { - \$pos = $match2[2]\t\t\t: " . (preg_match("~\\\$LANG == '$_SESSION[lang]'.* \\? (.+)\n~U", $match2[1], $match3) ? $match3[1] : "1") . ' + \$pos = $match2[2]\t\t\t: " . (preg_match("~'$_SESSION[lang]'.* \\? (.+)\n~U", $match2[1], $match3) ? $match3[1] : "1") . ' ); $translation = $translation[$pos]; }