aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Calendar.php
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-08-19 17:27:01 +0200
committerAnna Larch <anna@nextcloud.com>2024-08-20 10:16:57 +0200
commit5bbc23a2611307d7276c1078cf0b0469d93a991e (patch)
treee39f36352d819c7d1090840530e2b57b5b8434e9 /apps/dav/lib/CalDAV/Calendar.php
parent2b7d9c1c9db85581a4b37a5a5e483b64ddd60a4b (diff)
downloadnextcloud-server-5bbc23a2611307d7276c1078cf0b0469d93a991e.tar.gz
nextcloud-server-5bbc23a2611307d7276c1078cf0b0469d93a991e.zip
fix(caldav): allow renaming of birthday calendars
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/Calendar.php')
-rw-r--r--apps/dav/lib/CalDAV/Calendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php
index eaf8d227a6f..2781dbafa67 100644
--- a/apps/dav/lib/CalDAV/Calendar.php
+++ b/apps/dav/lib/CalDAV/Calendar.php
@@ -46,7 +46,7 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IRestorable, IShareable
parent::__construct($caldavBackend, $calendarInfo);
- if ($this->getName() === BirthdayService::BIRTHDAY_CALENDAR_URI) {
+ if ($this->getName() === BirthdayService::BIRTHDAY_CALENDAR_URI && strcasecmp($this->calendarInfo['{DAV:}displayname'], 'Contact birthdays') === 0) {
$this->calendarInfo['{DAV:}displayname'] = $l10n->t('Contact birthdays');
}
if ($this->getName() === CalDavBackend::PERSONAL_CALENDAR_URI &&