]> git.joonet.de Git - adminer.git/commitdiff
Add namespace in lang.php
authorJakub Vrana <jakub@vrana.cz>
Wed, 5 Mar 2025 11:44:55 +0000 (12:44 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 5 Mar 2025 12:10:41 +0000 (13:10 +0100)
lang.php

index d0ac9b6286299fe7d53477cb203453fbed33d987..b748711e136febc9c0e0d81f618e450cf018476b 100755 (executable)
--- a/lang.php
+++ b/lang.php
@@ -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";