mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Add namespace in lang.php
This commit is contained in:
4
lang.php
4
lang.php
@@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
namespace Adminer;
|
|
||||||
|
|
||||||
include __DIR__ . "/adminer/include/errors.inc.php";
|
include __DIR__ . "/adminer/include/errors.inc.php";
|
||||||
|
|
||||||
unset($_COOKIE["adminer_lang"]);
|
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) {
|
if ($s != $file) {
|
||||||
file_put_contents($filename, $s);
|
file_put_contents($filename, $s);
|
||||||
echo "$filename updated.\n";
|
echo "$filename updated.\n";
|
||||||
|
Reference in New Issue
Block a user