]> git.joonet.de Git - adminer.git/commitdiff
Fix bs,ru,sr,uk single lang version after f2ce6c0
authorJakub Vrana <jakub@vrana.cz>
Sat, 15 Mar 2025 01:32:00 +0000 (02:32 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 15 Mar 2025 01:32:37 +0000 (02:32 +0100)
compile.php

index 1edfd1697287f2535d284d9885ddb885874bf6fd..9169b1d6f914a559776d81c082302827e5c2546a 100755 (executable)
@@ -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];
        }