From c03ad310cbf40c574479c2fc8b87412a0c41d659 Mon Sep 17 00:00:00 2001 From: Tobia De Koninck Date: Wed, 23 Apr 2014 08:42:17 +0200 Subject: [PATCH] fix issues --- appinfo/app.php | 3 +-- lib/addressbook.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/appinfo/app.php b/appinfo/app.php index 54008f8c..775f6ab8 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -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()); } } } diff --git a/lib/addressbook.php b/lib/addressbook.php index b4e43eff..c4984839 100644 --- a/lib/addressbook.php +++ b/lib/addressbook.php @@ -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); } }