Now environment stuff uses $CFG->dbfamily

This commit is contained in:
stronk7
2007-01-13 01:20:10 +00:00
parent 38b7241934
commit ed7656bf01
+2 -10
View File
@@ -658,16 +658,8 @@ function environment_check_database($version) {
}
/// Now search the version we are using (depending of vendor)
$current_vendor = $db->databaseType;
if ($current_vendor == 'mysqli') { //Normalize a bit mysql
$current_vendor ='mysql';
}
if ($current_vendor == 'postgres7') { //Normalize a bit postgresql
$current_vendor ='postgres';
}
if ($current_vendor == 'oci8po') { //Normalize a bit oracle
$current_vendor ='oracle';
}
$current_vendor = set_dbfamily();
$dbinfo = $db->ServerInfo();
$current_version = normalize_version($dbinfo['version']);
$needed_version = $vendors[$current_vendor];