]> git.joonet.de Git - adminer.git/commitdiff
Move schema link to Adminer::homepage method
authorJakub Vrana <jakub@vrana.cz>
Fri, 3 Jun 2011 11:49:47 +0000 (13:49 +0200)
committerJakub Vrana <jakub@vrana.cz>
Fri, 3 Jun 2011 11:49:47 +0000 (13:49 +0200)
adminer/db.inc.php
adminer/drivers/mysql.inc.php
adminer/include/adminer.inc.php

index 7bee8c231f839ac340649666f85408e9d7cc19ee..38621cdfc2dfae0f48017094f71f178fa9e7d8d0 100644 (file)
@@ -38,7 +38,6 @@ page_header(($_GET["ns"] == "" ? lang('Database') . ": " . h(DB) : lang('Schema'
 
 if ($adminer->homepage()) {
        if ($_GET["ns"] !== "") {
-               echo '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n";
                echo "<h3>" . lang('Tables and views') . "</h3>\n";
                $tables_list = tables_list();
                if (!$tables_list) {
index e87143b0d65daaae77027993040d3357760517a8..42f1876d12b95c8b23b6d9ad97a06117b017c77c 100644 (file)
@@ -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) {
index 639306cf3ac98961875feb31da9e3387c75d85b1..c533d4ecf2055c8faed68a5b4f755090db1d4421 100644 (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;
        }