aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller/AUserData.php
diff options
context:
space:
mode:
authorGretaD <gretadoci@gmail.com>2020-04-29 14:42:07 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-05-08 10:03:58 +0200
commitfce716b9057681703cd37a7ad74ff43e127bcb01 (patch)
treed5fbdf6a78c5e7c9a842def41ebff7758910dc22 /apps/provisioning_api/lib/Controller/AUserData.php
parent9012f4f906524765a7cc12f98e878232502f5793 (diff)
downloadnextcloud-server-fce716b9057681703cd37a7ad74ff43e127bcb01.tar.gz
nextcloud-server-fce716b9057681703cd37a7ad74ff43e127bcb01.zip
Fix languages empty array
Signed-off-by: GretaD <gretadoci@gmail.com>
Diffstat (limited to 'apps/provisioning_api/lib/Controller/AUserData.php')
-rw-r--r--apps/provisioning_api/lib/Controller/AUserData.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/AUserData.php b/apps/provisioning_api/lib/Controller/AUserData.php
index 4b43bfa2f6c..10d223815c3 100644
--- a/apps/provisioning_api/lib/Controller/AUserData.php
+++ b/apps/provisioning_api/lib/Controller/AUserData.php
@@ -146,7 +146,7 @@ abstract class AUserData extends OCSController {
$data[AccountManager::PROPERTY_WEBSITE] = $userAccount[AccountManager::PROPERTY_WEBSITE]['value'];
$data[AccountManager::PROPERTY_TWITTER] = $userAccount[AccountManager::PROPERTY_TWITTER]['value'];
$data['groups'] = $gids;
- $data['language'] = $this->config->getUserValue($targetUserObject->getUID(), 'core', 'lang');
+ $data['language'] = $this->config->getSystemValue('force_language', $this->config->getUserValue($targetUserObject->getUID(), 'core', 'lang'));
$data['locale'] = $this->config->getUserValue($targetUserObject->getUID(), 'core', 'locale');
$backend = $targetUserObject->getBackend();