diff options
Diffstat (limited to 'apps/dav')
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php index 8df6ef06fa5..044e5fac4e2 100644 --- a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php +++ b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php @@ -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; diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php index b7baef89ab9..8aacc33bb46 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php @@ -202,7 +202,7 @@ class IMipPlugin extends SabreIMipPlugin { $vevent = $iTipMessage->message->VEVENT; $attendee = $this->getCurrentAttendee($iTipMessage); - $defaultLang = $this->l10nFactory->findLanguage(); + $defaultLang = $this->l10nFactory->findGenericLanguage(); $lang = $this->getAttendeeLangOrDefault($defaultLang, $attendee); $l10n = $this->l10nFactory->get('dav', $lang); diff --git a/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php b/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php index 9e96a1f3bec..0352827aa5c 100644 --- a/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php +++ b/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php @@ -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 |