|
@@ 65-67 (lines=3) @@
|
| 62 |
|
$this->dbSettings['prefix'] = (string) $config['db']['table_prefix']; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
if (strpos($this->dbSettings['host'], ':') !== false) { |
| 66 |
|
list($this->dbSettings['host'], $this->dbSettings['port']) = explode(':', $this->dbSettings['host']); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if (isset($this->dbSettings['comment'])) { |
| 70 |
|
unset($this->dbSettings['comment']); |
|
@@ 105-107 (lines=3) @@
|
| 102 |
|
if (strpos($this->dbSettings['host'], '/') !== false) { |
| 103 |
|
$this->dbSettings['unix_socket'] = $this->dbSettings['host']; |
| 104 |
|
unset($this->dbSettings['host']); |
| 105 |
|
} elseif (strpos($this->dbSettings['host'], ':') !== false) { |
| 106 |
|
list($this->dbSettings['host'], $this->dbSettings['port']) = explode(':', $this->dbSettings['host']); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
$this->_connection = new PDO( |
| 110 |
|
$this->dsn(), |