File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ public function __construct( $renderAs, $appId = '' ) {
138138
139139 }
140140 // Send the language and the locale to our layouts
141- $ lang = \OC ::$ server ->getL10NFactory ()->findLanguage ();
141+ $ c = \OC ::$ server ->getL10NFactory ()->findLanguage ();
142142 $ locale = \OC ::$ server ->getL10NFactory ()->findLocale ($ lang );
143143 $ localeLang = \OC ::$ server ->getL10NFactory ()->findLanguageFromLocale ('lib ' , $ locale );
144144
@@ -162,7 +162,7 @@ public function __construct( $renderAs, $appId = '' ) {
162162 if ($ this ->config ->getSystemValue ('installed ' , false ) && $ renderAs != 'error ' ) {
163163 if (\OC ::$ server ->getContentSecurityPolicyNonceManager ()->browserSupportsCspV3 ()) {
164164 $ jsConfigHelper = new JSConfigHelper (
165- \OC ::$ server ->getL10N ('lib ' , $ localeLang ),
165+ \OC ::$ server ->getL10N ('lib ' , $ localeLang ? $ localeLang : $ lang ),
166166 \OC ::$ server ->query (Defaults::class),
167167 \OC ::$ server ->getAppManager (),
168168 \OC ::$ server ->getSession (),
You can’t perform that action at this time.
0 commit comments