mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Hide schema link in homepage with no schema
This commit is contained in:
@@ -720,7 +720,7 @@ DROP PROCEDURE adminer_alter;
|
||||
function homepage() {
|
||||
echo '<p>' . ($_GET["ns"] == "" ? '<a href="' . h(ME) . 'database=">' . lang('Alter database') . "</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";
|
||||
echo ($_GET["ns"] !== "" ? '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n" : "");
|
||||
echo (support("privileges") ? "<a href='" . h(ME) . "privileges='>" . lang('Privileges') . "</a>\n" : "");
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user