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

Move $drivers to SqlDriver

This commit is contained in:
Jakub Vrana
2025-03-28 22:39:12 +01:00
parent 1f88485a3c
commit aceb4ce7a5
16 changed files with 26 additions and 32 deletions

View File

@@ -391,8 +391,7 @@ function set_session(string $key, $val) {
/** Get authenticated URL */
function auth_url(string $vendor, ?string $server, string $username, string $db = null): string {
global $drivers;
$uri = remove_from_uri(implode("|", array_keys($drivers))
$uri = remove_from_uri(implode("|", array_keys(SqlDriver::$drivers))
. "|username|ext|"
. ($db !== null ? "db|" : "")
. ($vendor == 'mssql' || $vendor == 'pgsql' ? "" : "ns|") // we don't have access to support() here