mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Can switch between graph on account or all acounts.
This commit is contained in:
@@ -85,12 +85,9 @@ class DoliDb
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
if (isset($conf->db->character_set) && $conf->db->character_set) {
|
||||
$this->forcecharset=$conf->db->character_set;
|
||||
}
|
||||
if (isset($conf->db->dolibarr_main_db_collation) && $conf->db->dolibarr_main_db_collation) {
|
||||
$this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||
}
|
||||
if (! empty($conf->db->character_set)) $this->forcecharset=$conf->db->character_set;
|
||||
if (! empty($conf->db->dolibarr_main_db_collation)) $this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||
|
||||
$this->database_user=$user;
|
||||
|
||||
$this->transaction_opened=0;
|
||||
@@ -199,6 +196,7 @@ class DoliDb
|
||||
*/
|
||||
function select_db($database)
|
||||
{
|
||||
dolibarr_syslog("DoliDB::select_db database=".$database, LOG_DEBUG);
|
||||
return mysql_select_db($database, $this->db);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user