1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

MySQL: Fix links to information_schema help

This commit is contained in:
Jakub Vrana
2025-02-21 17:26:55 +01:00
parent 5f3a820571
commit 7d3266b369

View File

@@ -338,10 +338,10 @@ if (!defined("DRIVER")) {
function tableHelp($name) {
$maria = preg_match('~MariaDB~', $this->_conn->server_info);
if (information_schema(DB)) {
return strtolower(($maria ? "information-schema-$name-table/" : str_replace("_", "-", $name) . "-table.html"));
return strtolower("information-schema-" . ($maria ? "$name-table/" : str_replace("_", "-", $name) . "-table.html"));
}
if (DB == "mysql") {
return ($maria ? "mysql$name-table/" : "system-database.html"); //! more precise link
return ($maria ? "mysql$name-table/" : "system-schema.html"); //! more precise link
}
}