summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
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/settings/lib
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/settings/lib')
-rw-r--r--apps/settings/lib/Controller/UsersController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php
index abc4715df6c..d6410810d80 100644
--- a/apps/settings/lib/Controller/UsersController.php
+++ b/apps/settings/lib/Controller/UsersController.php
@@ -236,6 +236,7 @@ class UsersController extends Controller {
$serverData['userCount'] = $userCount;
$serverData['languages'] = $languages;
$serverData['defaultLanguage'] = $this->config->getSystemValue('default_language', 'en');
+ $serverData['forceLanguage'] = $this->config->getSystemValue('force_language', false);
// Settings
$serverData['defaultQuota'] = $defaultQuota;
$serverData['canChangePassword'] = $canChangePassword;