Get table names of backward keys only once
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@870 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
19a2f66545
commit
336f521f52
|
@ -301,6 +301,10 @@ if (!$columns) {
|
||||||
}
|
}
|
||||||
$result->free();
|
$result->free();
|
||||||
}
|
}
|
||||||
|
$table_names = array_keys($backward_keys);
|
||||||
|
if ($table_names) {
|
||||||
|
$table_names = array_combine($table_names, array_map('adminer_table_name', array_map('table_status', $table_names)));
|
||||||
|
}
|
||||||
|
|
||||||
echo "<table cellspacing='0' class='nowrap'>\n";
|
echo "<table cellspacing='0' class='nowrap'>\n";
|
||||||
echo "<thead><tr><td><input type='checkbox' id='all-page' onclick='form_check(this, /check/);'>";
|
echo "<thead><tr><td><input type='checkbox' id='all-page' onclick='form_check(this, /check/);'>";
|
||||||
|
@ -362,7 +366,7 @@ if (!$columns) {
|
||||||
echo where_link($i, $column, $rows[$n][$val]);
|
echo where_link($i, $column, $rows[$n][$val]);
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
echo '">' . adminer_table_name(table_status($table)) . '</a>';
|
echo "\">$table_names[$table]</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue