diff options
author | Mario <mario@mariovavti.com> | 2019-04-12 14:49:01 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-04-12 14:49:01 +0200 |
commit | 064f93185cf4204df2afa7ce23f8fe2dc8ce26ae (patch) | |
tree | 23acb0a4bec5d0d074ac9969adb27b5239b05ece /include/dba | |
parent | 4b5922f65291f33657cb76b6689d3613d664cd5f (diff) | |
parent | 775285cdf8faebb77e1725e7c88de82129acd3c4 (diff) | |
download | volse-hubzilla-064f93185cf4204df2afa7ce23f8fe2dc8ce26ae.tar.gz volse-hubzilla-064f93185cf4204df2afa7ce23f8fe2dc8ce26ae.tar.bz2 volse-hubzilla-064f93185cf4204df2afa7ce23f8fe2dc8ce26ae.zip |
Merge branch 'dev' into 'dev'
Fix use UNIX socket file to connect DB
See merge request hubzilla/core!1587
Diffstat (limited to 'include/dba')
-rwxr-xr-x | include/dba/dba_pdo.php | 2 |
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 : ''); |