aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-10 14:13:16 +0200
committerMax Kostikov <max@kostikov.co>2019-04-10 14:13:16 +0200
commit42f96dc7a6dca1e507570a8e78ba32b54468fc09 (patch)
treef5fb35ced49f825d8f856d5adab3a034fd03b822 /include/dba
parente96fa64625447aed6c2ee83f8bb53007a3b8f8ec (diff)
downloadvolse-hubzilla-42f96dc7a6dca1e507570a8e78ba32b54468fc09.tar.gz
volse-hubzilla-42f96dc7a6dca1e507570a8e78ba32b54468fc09.tar.bz2
volse-hubzilla-42f96dc7a6dca1e507570a8e78ba32b54468fc09.zip
Fix use UNIX socket file to connect DB
Diffstat (limited to 'include/dba')
-rwxr-xr-xinclude/dba/dba_pdo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php
index 5002f53e7..a70e4a1d7 100755
--- a/include/dba/dba_pdo.php
+++ b/include/dba/dba_pdo.php
@@ -19,7 +19,7 @@ class dba_pdo extends dba_driver {
$this->driver_dbtype = $scheme;
if(strpbrk($server,':;')) {
- $dsn = $server;
+ $dsn = $this->driver_dbtype . ':unix_socket=' . trim($server, ':;');
}
else {
$dsn = $this->driver_dbtype . ':host=' . $server . (intval($port) ? ';port=' . $port : '');