]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 removed unnecessary CFG from native drivers
authorskodak <skodak>
Tue, 2 Dec 2008 10:01:01 +0000 (10:01 +0000)
committerskodak <skodak>
Tue, 2 Dec 2008 10:01:01 +0000 (10:01 +0000)
lib/dml/mysqli_native_moodle_database.php
lib/dml/pgsql_native_moodle_database.php

index d7c905b9fd0d0fb2b77cd1e1dfff1b2369b74489..0181b6e5a5e30fe0be06fb5aefdef706cf8ae754 100644 (file)
@@ -112,8 +112,6 @@ class mysqli_native_moodle_database extends moodle_database {
      * @return bool success
      */
     public function connect($dbhost, $dbuser, $dbpass, $dbname, $prefix, array $dboptions=null) {
-        global $CFG;
-
         $driverstatus = $this->driver_installed();
 
         if ($driverstatus !== true) {
index 9d370ebf7b54dd08d416408b116f04eaede9fe06..35e8dff3bdfe594e5aeb4f220133dcbe8dd72a8e 100644 (file)
@@ -84,8 +84,6 @@ class pgsql_native_moodle_database extends moodle_database {
      * @throws dml_connection_exception if error
      */
     public function connect($dbhost, $dbuser, $dbpass, $dbname, $prefix, array $dboptions=null) {
-        global $CFG;
-
         $driverstatus = $this->driver_installed();
 
         if ($driverstatus !== true) {