Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2014-05-28 00:35:50 +0400
committerBart Visscher <bartv@thisnet.nl>2014-05-28 00:35:50 +0400
commita51e9a5cfed42d046a123e7d8770075b0e577a98 (patch)
tree4172623737169422598868ae195e6e930389a81c /lib/public
parent339554ae71b0e040d90dfff9e32216b9555477f0 (diff)
parent8749442fec81da051cb1b61ee4a87b0c078fb3bf (diff)
Merge pull request #8136 from owncloud/contactsmanager-register
Implement the register function of OC\ContactsManager
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/contacts.php4
-rw-r--r--lib/public/contacts/imanager.php3
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/public/contacts.php b/lib/public/contacts.php
index fb88c13bd1b..5311050d5c3 100644
--- a/lib/public/contacts.php
+++ b/lib/public/contacts.php
@@ -134,7 +134,7 @@ namespace OCP {
*/
public static function registerAddressBook(\OCP\IAddressBook $address_book) {
$cm = \OC::$server->getContactsManager();
- return $cm->registerAddressBook($address_book);
+ $cm->registerAddressBook($address_book);
}
/**
@@ -142,7 +142,7 @@ namespace OCP {
*/
public static function unregisterAddressBook(\OCP\IAddressBook $address_book) {
$cm = \OC::$server->getContactsManager();
- return $cm->unregisterAddressBook($address_book);
+ $cm->unregisterAddressBook($address_book);
}
/**
diff --git a/lib/public/contacts/imanager.php b/lib/public/contacts/imanager.php
index 32559220091..5a76585ead9 100644
--- a/lib/public/contacts/imanager.php
+++ b/lib/public/contacts/imanager.php
@@ -138,11 +138,10 @@ namespace OCP\Contacts {
* In order to improve lazy loading a closure can be registered which will be called in case
* address books are actually requested
*
- * @param string $key
* @param \Closure $callable
* @return void
*/
- function register($key, \Closure $callable);
+ function register(\Closure $callable);
/**
* @return array