core/functions/tv.php 1 location
|
@@ 253-255 (lines=3) @@
|
250 |
|
'alt' => $modx->getPhpCompat()->htmlspecialchars($params['alttext']), |
251 |
|
'style' => $params['style'] |
252 |
|
); |
253 |
|
if (isset($params['align']) && $params['align'] != 'none') { |
254 |
|
$attr['align'] = $params['align']; |
255 |
|
} |
256 |
|
foreach ($attr as $k => $v) { |
257 |
|
$attributes .= ($v ? ' ' . $k . '="' . $v . '"' : ''); |
258 |
|
} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php 1 location
|
@@ 63-65 (lines=3) @@
|
60 |
|
protected function constructPdoDsn(array $params) |
61 |
|
{ |
62 |
|
$dsn = 'mysql:'; |
63 |
|
if (isset($params['host']) && $params['host'] != '') { |
64 |
|
$dsn .= 'host=' . $params['host'] . ';'; |
65 |
|
} |
66 |
|
if (isset($params['port'])) { |
67 |
|
$dsn .= 'port=' . $params['port'] . ';'; |
68 |
|
} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php 2 locations
|
@@ 82-84 (lines=3) @@
|
79 |
|
{ |
80 |
|
$dsn = 'pgsql:'; |
81 |
|
|
82 |
|
if (isset($params['host']) && $params['host'] != '') { |
83 |
|
$dsn .= 'host=' . $params['host'] . ';'; |
84 |
|
} |
85 |
|
|
86 |
|
if (isset($params['port']) && $params['port'] != '') { |
87 |
|
$dsn .= 'port=' . $params['port'] . ';'; |
|
@@ 86-88 (lines=3) @@
|
83 |
|
$dsn .= 'host=' . $params['host'] . ';'; |
84 |
|
} |
85 |
|
|
86 |
|
if (isset($params['port']) && $params['port'] != '') { |
87 |
|
$dsn .= 'port=' . $params['port'] . ';'; |
88 |
|
} |
89 |
|
|
90 |
|
if (isset($params['dbname'])) { |
91 |
|
$dsn .= 'dbname=' . $params['dbname'] . ';'; |