Function to retrieve driver name
Plugins cannot access $drivers global after compilation.
This commit is contained in:
parent
b2c96c60a3
commit
dadc1e1c58
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue