1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

Add back function to get driver name (fix #919)

This reverts fe88f83.
This commit is contained in:
Jakub Vrana
2025-03-17 08:07:24 +01:00
parent a460019535
commit e8b15c99f4
4 changed files with 16 additions and 7 deletions

View File

@@ -13,12 +13,13 @@ function add_driver($id, $name) {
$drivers[$id] = $name;
}
/** Get driver
* @return Driver
/** Get driver name
* @param string
* @return string
*/
function get_driver() {
global $driver;
return $driver;
function get_driver($id) {
global $drivers;
return $drivers[$id];
}
abstract class SqlDriver {