]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15320 fixed $cfg->library typo - thanks Andrei Bautu
authorskodak <skodak>
Fri, 20 Jun 2008 20:30:29 +0000 (20:30 +0000)
committerskodak <skodak>
Fri, 20 Jun 2008 20:30:29 +0000 (20:30 +0000)
lib/dml/adodb_moodle_database.php
lib/dml/postgres7_adodb_moodle_database.php

index d3c34cfb9e436cd72620335009218d8fb66bc72e..19fca53ec82baded60b5550c833090d66b1ee30c 100644 (file)
@@ -28,13 +28,13 @@ abstract class adodb_moodle_database extends moodle_database {
      */
     public function export_dbconfig() {
         $cfg = new stdClass();
-        $cfg->dbtype  = $this->get_dbtype();
-        $cfg->library = 'adodb';
-        $cfg->dbhost  = $this->dbhost;
-        $cfg->dbname  = $this->dbname;
-        $cfg->dbuser  = $this->dbuser;
-        $cfg->dbpass  = $this->dbpass;
-        $cfg->prefix  = $this->prefix;
+        $cfg->dbtype    = $this->get_dbtype();
+        $cfg->dblibrary = 'adodb';
+        $cfg->dbhost    = $this->dbhost;
+        $cfg->dbname    = $this->dbname;
+        $cfg->dbuser    = $this->dbuser;
+        $cfg->dbpass    = $this->dbpass;
+        $cfg->prefix    = $this->prefix;
 
         return $cfg;
     }
index 29aaedde0446de4e1d35c6925fa11e02819bb0bc..6a7d3fc429e9e78eeac697e4ed82bdcbd37ef1af 100644 (file)
@@ -74,20 +74,20 @@ class postgres7_adodb_moodle_database extends adodb_moodle_database {
      */
     public function export_dbconfig() {
         $cfg = new stdClass();
-        $cfg->dbtype  = $this->get_dbtype();
-        $cfg->library = 'adodb';
+        $cfg->dbtype     = $this->get_dbtype();
+        $cfg->dblibrary  = 'adodb';
         if ($this->dbhost == 'localhost' or $this->dbhost == '127.0.0.1') {
-            $cfg->dbhost  = "user='{$this->dbuser}' password='{$this->dbpass}' dbname='{$this->dbname}'";
-            $cfg->dbname  = '';
-            $cfg->dbuser  = '';
-            $cfg->dbpass  = '';
+            $cfg->dbhost = "user='{$this->dbuser}' password='{$this->dbpass}' dbname='{$this->dbname}'";
+            $cfg->dbname = '';
+            $cfg->dbuser = '';
+            $cfg->dbpass = '';
         } else {
-            $cfg->dbhost  = $this->dbhost;
-            $cfg->dbname  = $this->dbname;
-            $cfg->dbuser  = $this->dbuser;
-            $cfg->dbpass  = $this->dbpass;
+            $cfg->dbhost = $this->dbhost;
+            $cfg->dbname = $this->dbname;
+            $cfg->dbuser = $this->dbuser;
+            $cfg->dbpass = $this->dbpass;
         }
-        $cfg->prefix  = $this->prefix;
+        $cfg->prefix     = $this->prefix;
 
         return $cfg;
     }