diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-20 14:15:23 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-06 14:20:01 +0200 |
commit | ce964f0a10dc2d160a67e8b4e86c5f0c18195d57 (patch) | |
tree | bdef6db36f7ee3ef873d555b77ed75d993659aed /apps/dav/lib/HookManager.php | |
parent | a4f82f13f396fc063643ab4a9dfcf17b52019332 (diff) | |
download | nextcloud-server-ce964f0a10dc2d160a67e8b4e86c5f0c18195d57.tar.gz nextcloud-server-ce964f0a10dc2d160a67e8b4e86c5f0c18195d57.zip |
Translate the Contacts addressbook when it's default
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/HookManager.php')
-rw-r--r-- | apps/dav/lib/HookManager.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/dav/lib/HookManager.php b/apps/dav/lib/HookManager.php index 0ea5e47dd95..92aa4fce7fa 100644 --- a/apps/dav/lib/HookManager.php +++ b/apps/dav/lib/HookManager.php @@ -132,8 +132,9 @@ class HookManager { } if ($this->cardDav->getAddressBooksForUserCount($principal) === 0) { try { - $this->cardDav->createAddressBook($principal, 'contacts', [ - '{DAV:}displayname' => 'Contacts']); + $this->cardDav->createAddressBook($principal, CardDavBackend::PERSONAL_ADDRESSBOOK_URI, [ + '{DAV:}displayname' => CardDavBackend::PERSONAL_ADDRESSBOOK_NAME, + ]); } catch (\Exception $ex) { \OC::$server->getLogger()->logException($ex); } |