From 353449bff7eb25a41b63d51f071a8eb8e55e4dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 13 Apr 2016 15:44:59 +0200 Subject: [PATCH] Use better names for the default calendars and addressbooks - fixes #23720 --- apps/dav/lib/hookmanager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/hookmanager.php b/apps/dav/lib/hookmanager.php index c3d68a3ee2..4a4704ff2a 100644 --- a/apps/dav/lib/hookmanager.php +++ b/apps/dav/lib/hookmanager.php @@ -105,7 +105,8 @@ class HookManager { $calendars = $this->calDav->getCalendarsForUser($principal); if (empty($calendars)) { try { - $this->calDav->createCalendar($principal, 'default', []); + $this->calDav->createCalendar($principal, 'personal', [ + 'displayname' => 'Personal']); } catch (\Exception $ex) { \OC::$server->getLogger()->logException($ex); } @@ -113,7 +114,8 @@ class HookManager { $books = $this->cardDav->getAddressBooksForUser($principal); if (empty($books)) { try { - $this->cardDav->createAddressBook($principal, 'default', []); + $this->cardDav->createAddressBook($principal, 'contacts', [ + 'displayname' => 'Contacts']); } catch (\Exception $ex) { \OC::$server->getLogger()->logException($ex); }