From 1fd8aa885b577f85883f30452a7b1c608f049300 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 15 Mar 2025 02:32:00 +0100 Subject: [PATCH] Fix bs,ru,sr,uk single lang version after f2ce6c0 --- compile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }