diff options
-rw-r--r-- | apps/dav/lib/hookmanager.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/lib/hookmanager.php b/apps/dav/lib/hookmanager.php index c3d68a3ee2a..4a4704ff2a2 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); } |