mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 01:54:00 +02:00
Function to retrieve driver name
Plugins cannot access $drivers global after compilation.
This commit is contained in:
@@ -11,6 +11,15 @@ function add_driver($id, $name) {
|
||||
$drivers[$id] = $name;
|
||||
}
|
||||
|
||||
/** Get driver name
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
function get_driver($id) {
|
||||
global $drivers;
|
||||
return $drivers[$id];
|
||||
}
|
||||
|
||||
/*abstract*/ class Min_SQL {
|
||||
var $_conn;
|
||||
|
||||
|
Reference in New Issue
Block a user