Fix: chemin du conf.php

This commit is contained in:
Regis Houssin
2007-07-12 09:07:53 +00:00
parent 0d7b35f2ba
commit e9e5cce55a
3 changed files with 6 additions and 6 deletions

View File

@@ -119,7 +119,7 @@ class DoliDb
function DoliDb($type='mysql', $host, $user, $pass, $name='', $newlink=0) function DoliDb($type='mysql', $host, $user, $pass, $name='', $newlink=0)
{ {
global $conf,$langs; global $conf,$langs;
$conffile = "../conf/conf.php"; $conffile = DOL_DOCUMENT_ROOT."/conf/conf.php";
if (file_exists($conffile)) { if (file_exists($conffile)) {
include($conffile); include($conffile);
$this->forcecharset=$character_set_database; $this->forcecharset=$character_set_database;

View File

@@ -119,7 +119,7 @@ class DoliDb
{ {
global $conf,$langs; global $conf,$langs;
$conffile = "../../conf/conf.php"; $conffile = DOL_DOCUMENT_ROOT."/conf/conf.php";
if (file_exists($conffile)) { if (file_exists($conffile)) {
include($conffile); include($conffile);
$this->forcecharset=$character_set_database; $this->forcecharset=$character_set_database;

View File

@@ -75,7 +75,7 @@ class DoliDb
function DoliDb($type='pgsql', $host, $user, $pass, $name='') function DoliDb($type='pgsql', $host, $user, $pass, $name='')
{ {
global $conf,$langs; global $conf,$langs;
$conffile = "../conf/conf.php"; $conffile = DOL_DOCUMENT_ROOT."/conf/conf.php";
if (file_exists($conffile)) { if (file_exists($conffile)) {
include($conffile); include($conffile);
$this->forcecharset=$character_set_database; $this->forcecharset=$character_set_database;