Fix: missing host and port into object
This commit is contained in:
parent
a1a03a8061
commit
7bd27a13fa
@ -46,6 +46,10 @@ abstract class DoliDB implements Database
|
||||
public $database_name;
|
||||
//! Database username
|
||||
public $database_user;
|
||||
//! Database host
|
||||
public $database_host;
|
||||
//! Database port
|
||||
public $database_port;
|
||||
//! >=1 if a transaction is opened, 0 otherwise
|
||||
public $transaction_opened;
|
||||
//! Last successful query
|
||||
|
||||
@ -60,6 +60,8 @@ class DoliDBMssql extends DoliDB
|
||||
global $conf,$langs;
|
||||
|
||||
$this->database_user=$user;
|
||||
$this->database_host=$host;
|
||||
$this->database_port=$port;
|
||||
$this->transaction_opened=0;
|
||||
|
||||
if (! function_exists("mssql_connect"))
|
||||
|
||||
@ -61,6 +61,8 @@ class DoliDBMysql extends DoliDB
|
||||
if (! empty($conf->db->dolibarr_main_db_collation)) $this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||
|
||||
$this->database_user=$user;
|
||||
$this->database_host=$host;
|
||||
$this->database_port=$port;
|
||||
|
||||
$this->transaction_opened=0;
|
||||
|
||||
|
||||
@ -61,6 +61,8 @@ class DoliDBMysqli extends DoliDB
|
||||
if (! empty($conf->db->dolibarr_main_db_collation)) $this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||
|
||||
$this->database_user=$user;
|
||||
$this->database_host=$host;
|
||||
$this->database_port=$port;
|
||||
|
||||
$this->transaction_opened=0;
|
||||
|
||||
|
||||
@ -71,6 +71,8 @@ class DoliDBPgsql extends DoliDB
|
||||
if (! empty($conf->db->dolibarr_main_db_collation)) $this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||
|
||||
$this->database_user=$user;
|
||||
$this->database_host=$host;
|
||||
$this->database_port=$port;
|
||||
|
||||
$this->transaction_opened=0;
|
||||
|
||||
|
||||
@ -61,6 +61,8 @@ class DoliDBSqlite extends DoliDB
|
||||
if (! empty($conf->db->dolibarr_main_db_collation)) $this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||
|
||||
$this->database_user=$user;
|
||||
$this->database_host=$host;
|
||||
$this->database_port=$port;
|
||||
|
||||
$this->transaction_opened=0;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user