Skip to content
Snippets Groups Projects
Commit cefdd99e authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Ajout paramètre newlink

Utilisé dans les scripts qui forkent
parent 4ad5b418
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ class DoliDb
\param name nom de la database
\return int 1 en cas de succès, 0 sinon
*/
function DoliDb($type = 'mysql', $host = '', $user = '', $pass = '', $name = '')
function DoliDb($type = 'mysql', $host = '', $user = '', $pass = '', $name = '', $newlink=0)
{
global $conf;
$this->transaction_opened=0;
......@@ -90,7 +90,7 @@ class DoliDb
// Essai connexion serveur
$this->db = $this->connect($host, $user, $pass);
$this->db = $this->connect($host, $user, $pass, $newlink);
if ($this->db)
{
......@@ -148,9 +148,9 @@ class DoliDb
\return resource handler d'accès à la base
*/
function connect($host, $login, $passwd)
function connect($host, $login, $passwd, $newlink=0)
{
$this->db = @mysql_connect($host, $login, $passwd);
$this->db = @mysql_connect($host, $login, $passwd, $newlink);
//print "Resultat fonction connect: ".$this->db;
return $this->db;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment