summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-13 11:30:57 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-13 11:37:40 +0200
commit92fbb6d79560fa41235981252bae4b3af89531f8 (patch)
tree4cd86a4619b462c1ffc26e1bf00e9cfc7b8f8515
parent7d158c62ce13bfe126aa96bf157fc890c2813fac (diff)
downloadnextcloud-server-92fbb6d79560fa41235981252bae4b3af89531f8.tar.gz
nextcloud-server-92fbb6d79560fa41235981252bae4b3af89531f8.zip
Fallback to $lang if no $locale match
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--lib/private/TemplateLayout.php2
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(),