diff --git a/adminer/db.inc.php b/adminer/db.inc.php index 7bee8c23..38621cdf 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -38,7 +38,6 @@ page_header(($_GET["ns"] == "" ? lang('Database') . ": " . h(DB) : lang('Schema' if ($adminer->homepage()) { if ($_GET["ns"] !== "") { - echo '' . lang('Database schema') . "\n"; echo "

" . lang('Tables and views') . "

\n"; $tables_list = tables_list(); if (!$tables_list) { diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index e87143b0..42f1876d 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -898,7 +898,7 @@ if (!defined("DRIVER")) { } /** Check whether a feature is supported - * @param string "comment", "drop_col", "dump", "event", "partitioning", "routine", "scheme", "sequence", "status", "trigger", "type", "variables", "view", "copy" + * @param string "comment", "copy", "drop_col", "dump", "event", "partitioning", "privileges", "processlist", "routine", "scheme", "sequence", "status", "trigger", "type", "variables", "view" * @return bool */ function support($feature) { diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 639306cf..c533d4ec 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -719,9 +719,8 @@ DROP PROCEDURE adminer_alter; */ function homepage() { echo '

' . ($_GET["ns"] == "" ? '' . lang('Alter database') . "\n" : ""); - if (support("scheme")) { - echo "" . ($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema')) . "\n"; - } + echo (support("scheme") ? "" . ($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema')) . "\n" : ""); + echo '' . lang('Database schema') . "\n"; return true; }