1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 23:57:29 +02:00

Use adminer() instead of $adminer

This commit is contained in:
Jakub Vrana
2025-03-29 20:56:19 +01:00
parent 87f149ce1d
commit 845445baad
29 changed files with 184 additions and 218 deletions

View File

@@ -31,7 +31,7 @@ foreach (table_status('', true) as $table => $table_status) {
$schema[$table]["fields"][$name] = $field;
}
$schema[$table]["pos"] = ($table_pos[$table] ?: array($top, 0));
foreach ($adminer->foreignKeys($table) as $val) {
foreach (adminer()->foreignKeys($table) as $val) {
if (!$val["db"]) {
$left = $base_left;
if (idx($table_pos[$table], 1) || idx($table_pos[$val["table"]], 1)) {