diff options
author | Bart Visscher <bartv@thisnet.nl> | 2014-04-10 18:06:31 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2014-04-10 18:06:31 +0200 |
commit | 5c412f480cb885516a3bdd22f9b9e5f49394eec4 (patch) | |
tree | 60b7251744e29fad52be6c42b5bab38fc8988e08 | |
parent | 511816b878d2574cdb1ee638ab731dbf635ff035 (diff) | |
download | nextcloud-server-5c412f480cb885516a3bdd22f9b9e5f49394eec4.tar.gz nextcloud-server-5c412f480cb885516a3bdd22f9b9e5f49394eec4.zip |
$key is not needed for registering contactsmanager callbacks
-rw-r--r-- | lib/private/contactsmanager.php | 5 | ||||
-rw-r--r-- | lib/public/contacts/imanager.php | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/private/contactsmanager.php b/lib/private/contactsmanager.php index fb0f938db36..02338453bec 100644 --- a/lib/private/contactsmanager.php +++ b/lib/private/contactsmanager.php @@ -143,12 +143,11 @@ namespace OC { * 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 */ - public function register($key, \Closure $callable) + public function register(\Closure $callable) { - $this->address_book_loaders[$key] = $callable; + $this->address_book_loaders[] = $callable; } /** diff --git a/lib/public/contacts/imanager.php b/lib/public/contacts/imanager.php index 005b71f298b..1387836573b 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 |