diff options
author | Georg Ehrke <developer@georgehrke.com> | 2016-03-10 13:02:42 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-10 21:02:54 +0100 |
commit | 856ca641d17f1775081959bec92b97c93d903e1e (patch) | |
tree | 89c1864bbcac829e32737ed37626ec4f106aa61c /apps/dav | |
parent | 51072f742ea2988d8e485dff60d81834e077fe3f (diff) | |
download | nextcloud-server-856ca641d17f1775081959bec92b97c93d903e1e.tar.gz nextcloud-server-856ca641d17f1775081959bec92b97c93d903e1e.zip |
add title and color to birthday calendar
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/caldav/birthdayservice.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/caldav/birthdayservice.php b/apps/dav/lib/caldav/birthdayservice.php index 3b0a2a10e1c..09bed2430e4 100644 --- a/apps/dav/lib/caldav/birthdayservice.php +++ b/apps/dav/lib/caldav/birthdayservice.php @@ -91,6 +91,11 @@ class BirthdayService { * @throws \Sabre\DAV\Exception\BadRequest */ public function ensureCalendarExists($principal, $id, $properties) { + $properties = array_merge([ + '{DAV:}displayname' => 'Contact birthdays', + '{http://apple.com/ns/ical/}calendar-color' => '#FFFFCA', + ], $properties); + $book = $this->calDavBackEnd->getCalendarByUri($principal, $id); if (!is_null($book)) { return $book; |