mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-15320 fixed $cfg->library typo - thanks Andrei Bautu
This commit is contained in:
parent
fd45e5c37b
commit
4dd3bf0584
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user