summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-01-30 08:03:57 +0000
committerfisharebest <fisharebest@gmail.com>2011-01-30 08:03:57 +0000
commit72fa7d25ac36e2406da2b65e84411497d19c0b5c (patch)
tree6f45d8bc9aab4eecfb4f5234c329d734c43429f3
parentb4eae4099024897dcf58b97cc4a84b7d073fbc7f (diff)
downloadwebtrees-72fa7d25ac36e2406da2b65e84411497d19c0b5c.tar.gz
webtrees-72fa7d25ac36e2406da2b65e84411497d19c0b5c.tar.bz2
webtrees-72fa7d25ac36e2406da2b65e84411497d19c0b5c.zip
Fix: DB connections not working against unix sockets.
-rw-r--r--library/WT/DB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/DB.php b/library/WT/DB.php
index c19e8c7553..1ee6f494b1 100644
--- a/library/WT/DB.php
+++ b/library/WT/DB.php
@@ -67,7 +67,7 @@ class WT_DB {
// Create the underlying PDO object
self::$pdo=new PDO(
(substr($DBHOST, 0, 1)=='/' ?
- "mysql:unix_socket={$DBHOST}" :
+ "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" :
"mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}"
),
$DBUSER, $DBPASS,