94,16 → 94,13 |
$this->bdd_nom = Config::get('bdd_nom'); |
$this->utilisateur = Config::get('bdd_utilisateur'); |
$this->pass = Config::get('bdd_mot_de_passe'); |
$this->dsn = Config::get('bdd_dsn'); |
|
$this->encodage = Config::get('bdd_encodage'); |
|
if (!$this->dsn) { |
if ($this->type == 'sqlite' || $this->type == 'sqlite2') { |
$this->dsn = $this->type.':'.$this->hote; |
} else { |
$this->dsn = $this->type.':dbname='.$this->bdd_nom.';host='.$this->hote; |
} |
if ($this->type == 'sqlite' || $this->type == 'sqlite2') { |
$this->dsn = $this->type.':'.$this->hote; |
} else { |
$this->dsn = $this->type.':dbname='.$this->bdd_nom.';host='.$this->hote; |
} |
$this->initialiserProtocole(); |
} |