aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/DefaultShareProvider.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-23 08:45:01 +0200
committerJoas Schilling <coding@schilljs.com>2020-07-03 10:59:43 +0200
commitdb8267db26e2e81ef4a39b424c5a8ea7bc124bfd (patch)
tree0d63e8dd40150166639f84083bfaf37cd9c52077 /lib/private/Share20/DefaultShareProvider.php
parentb997edad105d38703351b89998444ab0828f7d05 (diff)
downloadnextcloud-server-db8267db26e2e81ef4a39b424c5a8ea7bc124bfd.tar.gz
nextcloud-server-db8267db26e2e81ef4a39b424c5a8ea7bc124bfd.zip
Use the new method everywhere
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share20/DefaultShareProvider.php')
-rw-r--r--lib/private/Share20/DefaultShareProvider.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index 202b11a6c3d..ecfe282dfbf 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -1401,10 +1401,7 @@ class DefaultShareProvider implements IShareProvider {
/** @var IUser $recipient */
$email = $recipient->getEMailAddress();
if ($email) {
- $language = $this->config->getSystemValue('force_language', false);
- $language = \is_string($language) ? $language : $this->config->getUserValue($recipient->getUID(), 'core', 'lang', null);
- $language = $language ?? $this->config->getSystemValue('default_language', 'en');
-
+ $language = $this->l10nFactory->getUserLanguage($recipient);
if (!isset($toListByLanguage[$language])) {
$toListByLanguage[$language] = [];
}