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:
@@ -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
|
||||
|
Reference in New Issue
Block a user