1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

fix issues

This commit is contained in:
Tobia De Koninck 2014-04-23 08:42:17 +02:00
parent cc3fc4b9ba
commit c03ad310cb
2 changed files with 3 additions and 4 deletions

View File

@ -64,8 +64,7 @@ if (\OCP\User::isLoggedIn()) {
$addressBooks = $app->getAddressBooksForUser();
foreach ($addressBooks as $addressBook) {
if ($addressBook->isActive()) {
// $addressBook is instance of \OCA\Contacts\Addressbook
\OCP\Contacts::registerAddressBook($addressBook->getSearchProvider($addressBook));
\OCP\Contacts::registerAddressBook($addressBook->getSearchProvider());
}
}
}

View File

@ -487,7 +487,7 @@ class Addressbook extends AbstractPIMCollection {
* Returns the searchProvider for a specific backend.
* @param \OCA\Contacts\Addressbook $addressbook
*/
public function getSearchProvider($addressbook){
return $this->backend->getSearchProvider($addressbook);
public function getSearchProvider(){
return $this->backend->getSearchProvider($this);
}
}