Fix default language detection for calendar notifications

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2021-10-13 11:02:26 +02:00
parent c6166c0a37
commit 2148c448cc
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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