Skip to content

Commit

Permalink
Merge pull request #20719 from nextcloud/fix/fix_languages_empty_array
Browse files Browse the repository at this point in the history
Fix languages empty array
  • Loading branch information
MorrisJobke authored May 8, 2020
2 parents d476c7a + fce716b commit 1d588f6
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 49 deletions.
2 changes: 1 addition & 1 deletion apps/provisioning_api/lib/Controller/AUserData.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function getUserData(string $userId): array {
$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();
Expand Down
Loading

0 comments on commit 1d588f6

Please sign in to comment.