mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix default language detection for calendar notifications
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
c6166c0a37
commit
2148c448cc
2 changed files with 3 additions and 3 deletions
|
|
@ -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…
Reference in a new issue