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

CockroachDB: Do not use version number when linking docs

This commit is contained in:
Jakub Vrana
2025-03-19 06:14:02 +01:00
parent ca30d04575
commit 9b345fbafb
3 changed files with 11 additions and 7 deletions

View File

@@ -1066,7 +1066,9 @@ class Adminer {
}
echo "</script>\n";
}
echo script("bodyLoad('" . (is_object($connection) ? preg_replace('~^(\d\.?\d).*~s', '\1', $connection->server_info) : "") . "'" . ($connection->maria ? ", true" : "") . ");");
echo script("syntaxHighlighting('" . (is_object($connection) ? preg_replace('~^(\d\.?\d).*~s', '\1', $connection->server_info) : "") . "'"
. ($connection->maria ? ", 'maria'" : ($connection->cockroach ? ", 'cockroach'" : "")) . ");"
);
}
/** Prints databases list in menu