// Replace 'server' with 'host' in PDO DSN #PSFV-442
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13245 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -43,10 +43,10 @@ class DbPDOCore extends Db
|
||||
if (strpos($this->server, ':') !== false)
|
||||
{
|
||||
list($server, $port) = explode(':', $this->server);
|
||||
$dsn .= ';server='.$server.';port='.$port;
|
||||
$dsn .= ';host='.$server.';port='.$port;
|
||||
}
|
||||
else
|
||||
$dsn .= ';server='.$this->server;
|
||||
$dsn .= ';host='.$this->server;
|
||||
|
||||
$this->link = new PDO($dsn, $this->user, $this->password);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user