]> git.mjollnir.org Git - moodle.git/commitdiff
Now environment stuff uses $CFG->dbfamily
authorstronk7 <stronk7>
Sat, 13 Jan 2007 01:20:10 +0000 (01:20 +0000)
committerstronk7 <stronk7>
Sat, 13 Jan 2007 01:20:10 +0000 (01:20 +0000)
lib/environmentlib.php

index 179ed66173298481a6d1801a056da86342a7390a..4c961e492b9023d91e65e777db5894a8155cc44a 100644 (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];