Add a getConfig method to the Core Horde_Db factory for getting the db config
for the specified module, use it to get the charset parameter to pass to alarms.
if (strcasecmp($driver, 'Sql') === 0) {
$params['db'] = $injector->getInstance('Horde_Db')->getOb('horde', 'alarm');
+ $config = $injector->getInstance('Horde_Db')->getConfig('alarm');
+ $params['charset'] = $config['charset'];
}
$params['logger'] = $injector->getInstance('Horde_Log_Logger');
/**
*/
+ public function getConfig($type)
+ {
+ return Horde::getDriverConfig($type, 'sql');
+ }
+
+ /**
+ */
protected function _createDb($config)
{
if (!empty($config['splitread'])) {