diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-14 11:57:43 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-14 11:57:43 +0200 |
commit | 068e73cc47f4a35ce0b4374ad1b69df4b6a3265b (patch) | |
tree | 21e8ff3012991c6e32c9ad6a503fd395c8d6f9ba | |
parent | 6d9e15c6a142728ae15e2c8738185aede8c7dc19 (diff) | |
parent | 353449bff7eb25a41b63d51f071a8eb8e55e4dee (diff) | |
download | nextcloud-server-068e73cc47f4a35ce0b4374ad1b69df4b6a3265b.tar.gz nextcloud-server-068e73cc47f4a35ce0b4374ad1b69df4b6a3265b.zip |
Merge pull request #23975 from owncloud/change-default-calendar-and-contacts-names
Use better names for the default calendars and addressbooks
-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); } |