From 5850b3647217737e6d27b1e2de889656e2347e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 22 Feb 2006 19:02:56 +0000 Subject: [PATCH] Use correct server... --- libraries/dbi/mysql.dbi.lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/dbi/mysql.dbi.lib.php b/libraries/dbi/mysql.dbi.lib.php index 9f2b08740..c9281f499 100644 --- a/libraries/dbi/mysql.dbi.lib.php +++ b/libraries/dbi/mysql.dbi.lib.php @@ -22,15 +22,15 @@ function PMA_DBI_real_connect($server, $user, $password, $client_flags) { if (empty($client_flags)) { if ($cfg['PersistentConnections']) { - $link = @mysql_pconnect($cfg['Server']['host'] . $server_port . $server_socket, $user, $password); + $link = @mysql_pconnect($server, $user, $password); } else { - $link = @mysql_connect($cfg['Server']['host'] . $server_port . $server_socket, $user, $password); + $link = @mysql_connect($server, $user, $password); } } else { if ($cfg['PersistentConnections']) { - $link = @mysql_pconnect($cfg['Server']['host'] . $server_port . $server_socket, $user, $password, $client_flags); + $link = @mysql_pconnect($server, $user, $password, $client_flags); } else { - $link = @mysql_connect($cfg['Server']['host'] . $server_port . $server_socket, $user, $password, FALSE, $client_flags); + $link = @mysql_connect($server, $user, $password, FALSE, $client_flags); } }