Fix default language detection for calendar notifications

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/29195/head
Christoph Wurst 3 years ago
parent c6166c0a37
commit 2148c448cc
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8

@ -104,7 +104,7 @@ abstract class AbstractProvider implements INotificationProvider {
return $this->fallbackLanguage;
}
$fallbackLanguage = $this->l10nFactory->findLanguage();
$fallbackLanguage = $this->l10nFactory->findGenericLanguage();
$this->fallbackLanguage = $fallbackLanguage;
return $fallbackLanguage;

@ -104,7 +104,7 @@ class EmailProviderTest extends AbstractNotificationProviderTest {
]);
$this->l10nFactory
->method('findLanguage')
->method('findGenericLanguage')
->willReturn('en');
$this->l10nFactory
@ -214,7 +214,7 @@ class EmailProviderTest extends AbstractNotificationProviderTest {
]);
$this->l10nFactory
->method('findLanguage')
->method('findGenericLanguage')
->willReturn('en');
$this->l10nFactory

Loading…
Cancel
Save