Merge pull request #23975 from owncloud/change-default-calendar-and-contacts-names

Use better names for the default calendars and addressbooks
This commit is contained in:
Thomas Müller 2016-04-14 11:57:43 +02:00
commit 068e73cc47
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}