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:
commit
068e73cc47
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue