diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-13 11:30:57 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-13 11:37:40 +0200 |
commit | 92fbb6d79560fa41235981252bae4b3af89531f8 (patch) | |
tree | 4cd86a4619b462c1ffc26e1bf00e9cfc7b8f8515 /lib/private | |
parent | 7d158c62ce13bfe126aa96bf157fc890c2813fac (diff) | |
download | nextcloud-server-92fbb6d79560fa41235981252bae4b3af89531f8.tar.gz nextcloud-server-92fbb6d79560fa41235981252bae4b3af89531f8.zip |
Fallback to $lang if no $locale match
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/TemplateLayout.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index a710ee856e3..316e122e2c9 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -162,7 +162,7 @@ class TemplateLayout extends \OC_Template { if ($this->config->getSystemValue('installed', false) && $renderAs != 'error') { if (\OC::$server->getContentSecurityPolicyNonceManager()->browserSupportsCspV3()) { $jsConfigHelper = new JSConfigHelper( - \OC::$server->getL10N('lib', $localeLang), + \OC::$server->getL10N('lib', $localeLang ?: $lang), \OC::$server->query(Defaults::class), \OC::$server->getAppManager(), \OC::$server->getSession(), |