Skip to content

Commit

Permalink
Tie Kolab_Storage to Horde_History if enabled
Browse files Browse the repository at this point in the history
Otherwise Kolab_Storage_Factory::createHistory()
will use the in-memory only Horde_History_Mock object.
  • Loading branch information
thomasjfox authored and mrubinsk committed Jun 5, 2015
1 parent 2741c01 commit 17d7809
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions framework/Core/lib/Horde/Core/Factory/KolabStorage.php
Expand Up @@ -110,6 +110,13 @@ public function create()
'cache' => $this->_injector->getInstance('Horde_Cache'),
);

// Check if the history system is enabled
try {
$history = $this->_injector->getInstance('Horde_History');
$params['history'] = $history;
} catch(Horde_Exception $e) {
}

$factory = new Horde_Kolab_Storage_Factory($params);
return $factory->create();
}
Expand Down

0 comments on commit 17d7809

Please sign in to comment.