1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 12:21:24 +02:00

Move schema link to Adminer::homepage method

This commit is contained in:
Jakub Vrana
2011-06-03 13:49:47 +02:00
parent d09f05b01b
commit 98e410f42d
3 changed files with 3 additions and 5 deletions

View File

@@ -719,9 +719,8 @@ DROP PROCEDURE adminer_alter;
*/
function homepage() {
echo '<p>' . ($_GET["ns"] == "" ? '<a href="' . h(ME) . 'database=">' . lang('Alter database') . "</a>\n" : "");
if (support("scheme")) {
echo "<a href='" . h(ME) . "scheme='>" . ($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema')) . "</a>\n";
}
echo (support("scheme") ? "<a href='" . h(ME) . "scheme='>" . ($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema')) . "</a>\n" : "");
echo '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n";
return true;
}