Set 'host' with 'hostspec'.
authorJan Schneider <jan@horde.org>
Thu, 5 Nov 2009 18:19:34 +0000 (19:19 +0100)
committerJan Schneider <jan@horde.org>
Thu, 5 Nov 2009 18:19:57 +0000 (19:19 +0100)
kronolith/lib/Tagger.php

index 6d646ac..d51ac87 100644 (file)
@@ -41,6 +41,9 @@ class Kronolith_Tagger
         $GLOBALS['conf']['sql']['adapter'] = $GLOBALS['conf']['sql']['phptype'] == 'mysqli'
             ? 'mysqli'
             : 'pdo_' . $GLOBALS['conf']['sql']['phptype'];
+        if (!empty($GLOBALS['conf']['sql']['params']['hostspec'])) {
+            $GLOBALS['conf']['sql']['params']['host'] = $GLOBALS['conf']['sql']['params']['hostspec'];
+        }
 
         $context = array('dbAdapter' => Horde_Db_Adapter::factory($GLOBALS['conf']['sql']));
         $user_mgr = new Content_Users_Manager($context);