From 4dd3bf0584808a9e87e57b480081a5a3ecc7b547 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 20 Jun 2008 20:30:29 +0000 Subject: [PATCH] MDL-15320 fixed $cfg->library typo - thanks Andrei Bautu --- lib/dml/adodb_moodle_database.php | 14 ++++++------- lib/dml/postgres7_adodb_moodle_database.php | 22 ++++++++++----------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/dml/adodb_moodle_database.php b/lib/dml/adodb_moodle_database.php index d3c34cfb9e..19fca53ec8 100644 --- a/lib/dml/adodb_moodle_database.php +++ b/lib/dml/adodb_moodle_database.php @@ -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; } diff --git a/lib/dml/postgres7_adodb_moodle_database.php b/lib/dml/postgres7_adodb_moodle_database.php index 29aaedde04..6a7d3fc429 100644 --- a/lib/dml/postgres7_adodb_moodle_database.php +++ b/lib/dml/postgres7_adodb_moodle_database.php @@ -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; } -- 2.39.5