Use better names for the default calendars and addressbooks - fixes #23720

This commit is contained in:
Thomas Müller 2016-04-13 15:44:59 +02:00
parent 3c0a1d4241
commit 353449bff7
No known key found for this signature in database
GPG Key ID: A943788A3BBEC44C
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);
}