projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1469584
)
Another compatibility shim in the Binder
author
Chuck Hagenbuch
<chuck@horde.org>
Thu, 14 Jan 2010 22:36:03 +0000
(17:36 -0500)
committer
Chuck Hagenbuch
<chuck@horde.org>
Thu, 14 Jan 2010 22:36:03 +0000
(17:36 -0500)
framework/Core/lib/Horde/Core/Binder/Db.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde/Core/Binder/Db.php
b/framework/Core/lib/Horde/Core/Binder/Db.php
index
3368057
..
30b997a
100644
(file)
--- a/
framework/Core/lib/Horde/Core/Binder/Db.php
+++ b/
framework/Core/lib/Horde/Core/Binder/Db.php
@@
-25,6
+25,9
@@
class Horde_Core_Binder_Db implements Horde_Injector_Binder
if (!isset($config['adapter'])) {
$config['adapter'] = $config['phptype'] == 'mysqli' ? 'mysqli' : 'pdo_' . $config['phptype'];
}
+ if (!empty($config['hostspec'])) {
+ $config['host'] = $config['hostspec'];
+ }
if (!isset($config['logger'])) {
$config['logger'] = $injector->getInstance('Horde_Log_Logger');