Skip to content

Commit

Permalink
Fix virtual address books.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 6, 2022
1 parent bc53d85 commit 69f6788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Driver/Vbook.php
Expand Up @@ -55,7 +55,7 @@ public function __construct($name = '', array $params = array())
/* Load the underlying driver. */
$this->_driver = $GLOBALS['injector']
->getInstance('Turba_Factory_Driver')
->create($this->_params['source']);
->createFromConfig($this->_params['source']);

$this->searchCriteria = empty($this->_params['criteria'])
? array()
Expand Down
2 changes: 1 addition & 1 deletion lib/Factory/Driver.php
Expand Up @@ -141,7 +141,7 @@ private function _create($key, $srcConfig, $srcName, $cfgSources)
break;

case 'Turba_Driver_Vbook':
$srcConfig['params']['source'] = $cfgSources[$srcConfig['params']['source']];
$srcConfig['params']['source'] = $cfgSources;
break;
}

Expand Down

0 comments on commit 69f6788

Please sign in to comment.