summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-13 15:44:59 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-13 15:44:59 +0200
commit353449bff7eb25a41b63d51f071a8eb8e55e4dee (patch)
tree4a56335e2c33d4567111782a335ce8ef90f3f5c5 /apps/dav/lib
parent3c0a1d4241c16c13b3fd93406402320284d153d9 (diff)
downloadnextcloud-server-353449bff7eb25a41b63d51f071a8eb8e55e4dee.tar.gz
nextcloud-server-353449bff7eb25a41b63d51f071a8eb8e55e4dee.zip
Use better names for the default calendars and addressbooks - fixes #23720
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/hookmanager.php6
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);
}