Skip to content

Commit

Permalink
Fix using non-horde SQL storage parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 13, 2015
1 parent 2f0831b commit 37327ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kronolith/lib/Factory/Driver.php
Expand Up @@ -59,7 +59,7 @@ public function create($driver, array $params = array())
switch ($driver) {
case 'Sql':
$params = array_merge(Horde::getDriverConfig('calendar', 'sql'), $params);
if ($params['driverconfig'] != 'Horde') {
if ($params['driverconfig'] != 'horde') {
$customParams = $params;
unset($customParams['driverconfig'], $customParams['table'], $customParams['utc']);
$params['db'] = $this->_injector->getInstance('Horde_Core_Factory_Db')->create('kronolith', $customParams);
Expand Down
2 changes: 1 addition & 1 deletion kronolith/lib/Factory/Storage.php
Expand Up @@ -28,7 +28,7 @@ public function create($params = array())

$driver_params = Horde::getDriverConfig('storage', 'Sql');
if ($driver == 'Sql') {
if ($driver_params != 'Horde') {
if ($driver_params != 'horde') {
// Custom DB config
$params['db'] = $this->_injector->getInstance('Horde_Core_Factory_Db')->create('kronolith', Horde::getDriverConfig('storage', 'Sql'));
} else {
Expand Down
2 changes: 1 addition & 1 deletion mnemo/lib/Factory/Driver.php
Expand Up @@ -56,7 +56,7 @@ public function create($name = '')

switch ($class) {
case 'Mnemo_Driver_Sql':
if ($params['driverconfig'] != 'Horde') {
if ($params['driverconfig'] != 'horde') {
$customParams = $params;
unset($customParams['driverconfig'], $customParams['table']);
$params['db'] = $this->_injector->getInstance('Horde_Core_Factory_Db')->create('mnemo', $customParams);
Expand Down

0 comments on commit 37327ff

Please sign in to comment.