summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-11 11:49:13 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-11 11:49:13 +0100
commit750ec93394b76a3af4d45b32fd3b4dd788d431cf (patch)
tree1d1075860547cb7f99fae2015878492a02f3e2c9 /apps
parent1ed831564e47a35ce41f78cc6a67a95a06ad5f50 (diff)
parentfe7103506bf6f0497b172c8c38ff36ab1c70f4d0 (diff)
downloadnextcloud-server-750ec93394b76a3af4d45b32fd3b4dd788d431cf.tar.gz
nextcloud-server-750ec93394b76a3af4d45b32fd3b4dd788d431cf.zip
Merge pull request #23080 from owncloud/use-non-localized-birthday-title
Use a birthday title which does not require translation because we ha…
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/caldav/birthdayservice.php4
-rw-r--r--apps/dav/tests/unit/carddav/birthdayservicetest.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/caldav/birthdayservice.php b/apps/dav/lib/caldav/birthdayservice.php
index 3b0a2a10e1c..1cd52db8f48 100644
--- a/apps/dav/lib/caldav/birthdayservice.php
+++ b/apps/dav/lib/caldav/birthdayservice.php
@@ -123,7 +123,7 @@ class BirthdayService {
}
$title = str_replace('{name}',
strtr((string)$doc->FN, array('\,' => ',', '\;' => ';')),
- '{name}\'s Birthday'
+ '{name}'
);
try {
$date = new \DateTime($birthday);
@@ -146,7 +146,7 @@ class BirthdayService {
$vEvent->DTEND['VALUE'] = 'DATE';
$vEvent->{'UID'} = $doc->UID;
$vEvent->{'RRULE'} = 'FREQ=YEARLY';
- $vEvent->{'SUMMARY'} = $title . ' (' . $date->format('Y') . ')';
+ $vEvent->{'SUMMARY'} = $title . ' (*' . $date->format('Y') . ')';
$vEvent->{'TRANSP'} = 'TRANSPARENT';
$vCal->add($vEvent);
return $vCal;
diff --git a/apps/dav/tests/unit/carddav/birthdayservicetest.php b/apps/dav/tests/unit/carddav/birthdayservicetest.php
index faf42d9e1b8..2efb3c09aea 100644
--- a/apps/dav/tests/unit/carddav/birthdayservicetest.php
+++ b/apps/dav/tests/unit/carddav/birthdayservicetest.php
@@ -59,7 +59,7 @@ class BirthdayServiceTest extends TestCase {
$this->assertInstanceOf('Sabre\VObject\Component\VCalendar', $cal);
$this->assertTrue(isset($cal->VEVENT));
$this->assertEquals('FREQ=YEARLY', $cal->VEVENT->RRULE->getValue());
- $this->assertEquals('12345\'s Birthday (1900)', $cal->VEVENT->SUMMARY->getValue());
+ $this->assertEquals('12345 (*1900)', $cal->VEVENT->SUMMARY->getValue());
$this->assertEquals('TRANSPARENT', $cal->VEVENT->TRANSP->getValue());
}
}