]> git.joonet.de Git - adminer.git/commitdiff
Revert "Table-less drivers: Hide Create table link"
authorJakub Vrana <jakub@vrana.cz>
Tue, 18 Mar 2025 11:53:40 +0000 (12:53 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 18 Mar 2025 11:55:30 +0000 (12:55 +0100)
This reverts commit 841f76fb006317c73197a0d4fc2e02ecb38f076b.
This reverts commit 8fed1523eca41e60a63be1c6db0cdb3c0f0c0675.

adminer/db.inc.php
adminer/include/adminer.inc.php

index cdee8f02e5ffc452fd95bd9890943b2d5ee782dc..8b273fb320b07c197c7697c17fa56400d4c3643f 100644 (file)
@@ -165,7 +165,7 @@ if ($adminer->homepage()) {
                        echo script("tableCheck();");
                }
 
-               echo "<p class='links'>" . (support("table") ? "<a href='" . h(ME) . "create='>" . lang('Create table') . "</a>\n" : "");
+               echo "<p class='links'><a href='" . h(ME) . "create='>" . lang('Create table') . "</a>\n";
                echo (support("view") ? "<a href='" . h(ME) . "view='>" . lang('Create view') . "</a>\n" : "");
 
                if (support("routine")) {
index fa5e7e4cb4478272cea025891279a45ed10bbb63..5d68ca9d84a12a99270642f59539fc488e2a5d78 100644 (file)
@@ -1032,7 +1032,7 @@ class Adminer {
                                $actions[] = "<a href='" . h(ME) . "dump=" . urlencode(isset($_GET["table"]) ? $_GET["table"] : $_GET["select"]) . "' id='dump'" . bold(isset($_GET["dump"])) . ">" . lang('Export') . "</a>";
                        }
                        $in_db = $_GET["ns"] !== "" && !$missing && DB != "";
-                       if ($in_db && support("table")) {
+                       if ($in_db) {
                                $actions[] = '<a href="' . h(ME) . 'create="' . bold($_GET["create"] === "") . ">" . lang('Create table') . "</a>";
                        }
                        echo ($actions ? "<p class='links'>\n" . implode("\n", $actions) . "\n" : "");