mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-15320 support for other database driver types
This commit is contained in:
parent
dc81d75374
commit
6566118c51
@ -49,14 +49,9 @@ function setup_DB() {
|
||||
$CFG->dboptions = array();
|
||||
}
|
||||
|
||||
if ($CFG->dblibrary == 'adodb') {
|
||||
$classname = $CFG->dbtype.'_adodb_moodle_database';
|
||||
require_once($CFG->libdir.'/dml/'.$classname.'.php');
|
||||
$DB = new $classname();
|
||||
|
||||
} else {
|
||||
error('Not implemented db library yet: '.$CFG->dblibrary);
|
||||
}
|
||||
$classname = $CFG->dbtype.'_'.$CFG->dblibrary.'_moodle_database';
|
||||
require_once($CFG->libdir.'/dml/'.$classname.'.php');
|
||||
$DB = new $classname();
|
||||
|
||||
$CFG->dbfamily = $DB->get_dbfamily(); // TODO: BC only for now
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user