modification pour utiliser la variable $dolibarr_main_db_type
This commit is contained in:
parent
31b89733c2
commit
7495549c71
@ -66,6 +66,7 @@ if (!strlen(getenv("LLX_DBNAME")))
|
|||||||
$conf->db->name = $dolibarr_main_db_name;
|
$conf->db->name = $dolibarr_main_db_name;
|
||||||
$conf->db->user = $dolibarr_main_db_user;
|
$conf->db->user = $dolibarr_main_db_user;
|
||||||
$conf->db->pass = $dolibarr_main_db_pass;
|
$conf->db->pass = $dolibarr_main_db_pass;
|
||||||
|
$conf->db->type = $dolibarr_main_db_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -77,7 +78,7 @@ if (! $conf->db->type) { $conf->db->type = 'mysql'; }
|
|||||||
// A terme cette constante sera définie dans la base
|
// A terme cette constante sera définie dans la base
|
||||||
define('MAIN_DB_PREFIX','llx_');
|
define('MAIN_DB_PREFIX','llx_');
|
||||||
|
|
||||||
require (DOL_DOCUMENT_ROOT ."/lib/mysql.lib.php");
|
require (DOL_DOCUMENT_ROOT ."/lib/".$dolibarr_main_db_type.".lib.php");
|
||||||
require (DOL_DOCUMENT_ROOT ."/lib/functions.inc.php");
|
require (DOL_DOCUMENT_ROOT ."/lib/functions.inc.php");
|
||||||
require (DOL_DOCUMENT_ROOT ."/html.form.class.php");
|
require (DOL_DOCUMENT_ROOT ."/html.form.class.php");
|
||||||
require DOL_DOCUMENT_ROOT ."/user.class.php";
|
require DOL_DOCUMENT_ROOT ."/user.class.php";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user