Update lithium connections

This commit is contained in:
DariusIII
2016-06-25 15:10:32 +02:00
parent 4b4b294e18
commit 807b0a6747
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
2016-06-25 DariusIII
* Upd: Update lithium connections
* Upd: Composer will prefer source now on install
2016-06-24 DariusIII
* Fix: Fix styling of some pages in Gentele theme
+5 -3
View File
@@ -91,20 +91,22 @@ if (file_exists($config)) {
}
if (isset($adapter)) {
$host = empty(DB_SOCKET) ? DB_HOST : DB_SOCKET;
if (empty(DB_SOCKET)) {
$host = empty(DB_PORT) ? DB_HOST : DB_HOST.':'.DB_PORT;
} else {
$host = DB_SOCKET;
}
Connections::add('default',
[
'type' => 'database',
'adapter' => $adapter,
'host' => $host,
'port' => DB_PORT,
'login' => DB_USER,
'password' => DB_PASSWORD,
'database' => DB_NAME,
'encoding' => 'UTF-8',
'persistent' => false,
'socket' => DB_SOCKET,
]
);
}
+1 -1
View File
@@ -8,7 +8,7 @@
<precommit>9</precommit>
<!-- this is the version of the pre-commit file in githooks NOT the files it calls -->
</hooks>
<commit>5324</commit></git>
<commit>5325</commit></git>
<scripts>
<last>
<date>0000-00-00</date>