mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
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:
@@ -301,6 +301,10 @@ if (!$columns) {
|
||||
}
|
||||
$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 "<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]);
|
||||
$i++;
|
||||
}
|
||||
echo '">' . adminer_table_name(table_status($table)) . '</a>';
|
||||
echo "\">$table_names[$table]</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user