1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-08-07 17:42:53 +03:00

cherry-pick f8c8dcf520 so we can have $CONF[database_port] in v3.3.x

This commit is contained in:
David Goodwin
2021-10-12 19:49:53 +01:00
parent bef2d7c536
commit 4c0983f899

View File

@@ -1583,7 +1583,7 @@ function db_connection_string() {
if ($socket) { if ($socket) {
$dsn .= "unix_socket={$socket}"; $dsn .= "unix_socket={$socket}";
} else { } else {
$dsn .= "mysql:host={$CONF['database_host']}"; $dsn .= "host={$CONF['database_host']}";
} }
if (isset($CONF['database_port'])) { if (isset($CONF['database_port'])) {