diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-15 17:13:34 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-24 17:35:02 +0200 |
commit | 176ecbd31199370b68e310aa0dc361a4e25a04ea (patch) | |
tree | d325ed24285f8e9c0f2e211fb4beb3c793743018 /lib/base.php | |
parent | 6c93bcc814b6f063c0ecf058307222f5c92b02ae (diff) | |
download | nextcloud-server-176ecbd31199370b68e310aa0dc361a4e25a04ea.tar.gz nextcloud-server-176ecbd31199370b68e310aa0dc361a4e25a04ea.zip |
ownCloud users are exported as address book
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 840d9044711..95e5ae17b49 100644 --- a/lib/base.php +++ b/lib/base.php @@ -585,6 +585,7 @@ class OC { self::registerPreviewHooks(); self::registerShareHooks(); self::registerLogRotate(); + self::registerLocalAddressBook(); //make sure temporary files are cleaned up register_shutdown_function(array('OC_Helper', 'cleanTmp')); @@ -596,6 +597,14 @@ class OC { } } + private static function registerLocalAddressBook() { + self::$server->getContactsManager()->register(function() { + $userManager = \OC::$server->getUserManager(); + \OC::$server->getContactsManager()->registerAddressBook( + new \OC\Contacts\LocalAddressBook($userManager)); + }); + } + /** * register hooks for the cache */ |