1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 00:28:34 +02:00

Add namespace in lang.php

This commit is contained in:
Jakub Vrana
2025-03-05 12:44:55 +01:00
parent 2f49bfb67e
commit 6ceebc99df

View File

@@ -1,7 +1,5 @@
#!/usr/bin/env php
<?php
namespace Adminer;
include __DIR__ . "/adminer/include/errors.inc.php";
unset($_COOKIE["adminer_lang"]);
@@ -59,7 +57,7 @@ foreach (glob(__DIR__ . "/adminer/lang/" . ($_SESSION["lang"] ? $_SESSION["lang"
}
}
}
$s = "<?php\n\$translations = array(\n$s);\n";
$s = "<?php\nnamespace Adminer;\n\n\$translations = array(\n$s);\n";
if ($s != $file) {
file_put_contents($filename, $s);
echo "$filename updated.\n";