Skip to content

Commit 2148c44

Browse files
Fix default language detection for calendar notifications
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent c6166c0 commit 2148c44

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected function getFallbackLanguage():string {
104104
return $this->fallbackLanguage;
105105
}
106106

107-
$fallbackLanguage = $this->l10nFactory->findLanguage();
107+
$fallbackLanguage = $this->l10nFactory->findGenericLanguage();
108108
$this->fallbackLanguage = $fallbackLanguage;
109109

110110
return $fallbackLanguage;

apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testSendWithoutAttendees():void {
104104
]);
105105

106106
$this->l10nFactory
107-
->method('findLanguage')
107+
->method('findGenericLanguage')
108108
->willReturn('en');
109109

110110
$this->l10nFactory
@@ -214,7 +214,7 @@ public function testSendWithAttendees(): void {
214214
]);
215215

216216
$this->l10nFactory
217-
->method('findLanguage')
217+
->method('findGenericLanguage')
218218
->willReturn('en');
219219

220220
$this->l10nFactory

0 commit comments

Comments
 (0)