Skip to content

Commit

Permalink
Support xx in lang.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Oct 4, 2012
1 parent dad8996 commit 7865695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang.php
Expand Up @@ -5,7 +5,7 @@
$_SESSION["lang"] = $_SERVER["argv"][1]; // Adminer functions read language from session
if (isset($_SESSION["lang"])) {
include dirname(__FILE__) . "/adminer/include/lang.inc.php";
if (isset($_SERVER["argv"][2]) || !isset($langs[$_SESSION["lang"]])) {
if (isset($_SERVER["argv"][2]) || (!isset($langs[$_SESSION["lang"]]) && $_SESSION["lang"] != "xx")) {
echo "Usage: php lang.php [lang]\nPurpose: Update adminer/lang/*.inc.php from source code messages.\n";
exit(1);
}
Expand Down

0 comments on commit 7865695

Please sign in to comment.