Another compatibility shim in the Binder
authorChuck Hagenbuch <chuck@horde.org>
Thu, 14 Jan 2010 22:36:03 +0000 (17:36 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 14 Jan 2010 22:36:03 +0000 (17:36 -0500)
framework/Core/lib/Horde/Core/Binder/Db.php

index 3368057..30b997a 100644 (file)
@@ -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');