1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/10416] Pass dbport to PDO object in ...connection_manager::connect().

PHPBB3-10416
This commit is contained in:
Andreas Fischer
2011-10-16 20:06:08 +02:00
parent 7813135365
commit fa1d9a4571

View File

@@ -69,6 +69,11 @@ class phpbb_database_test_connection_manager
default: default:
$dsn .= 'host=' . $this->config['dbhost']; $dsn .= 'host=' . $this->config['dbhost'];
if ($this->config['dbport'])
{
$dsn .= ';port=' . $this->config['dbport'];
}
if ($use_db) if ($use_db)
{ {
$dsn .= ';dbname=' . $this->config['dbname']; $dsn .= ';dbname=' . $this->config['dbname'];