Use Language::getFixedLanguageCode()
authorMatthias Schmidt <gravatronics@live.com>
Wed, 6 May 2020 18:34:58 +0000 (20:34 +0200)
committerGitHub <noreply@github.com>
Wed, 6 May 2020 18:34:58 +0000 (20:34 +0200)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
com.woltlab.wcf/templates/headIncludeJavaScript.tpl
wcfsetup/install/files/acp/templates/header.tpl

index bf65521e188c98c1f0c03d86069eebd0cd7bf0c7..2289766b9f041c2e106f741c6da17a9f7c15e936 100644 (file)
@@ -8,7 +8,7 @@
        var WSC_API_URL = '{@$__wcf->getActivePath()}';
        var SECURITY_TOKEN = '{@SECURITY_TOKEN}';
        var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
-       var LANGUAGE_CODE = '{@$__wcf->getLanguage()->languageCode}';
+       var LANGUAGE_CODE = '{@$__wcf->getLanguage()->getFixedLanguageCode()}';
        var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};
        var TIME_NOW = {@TIME_NOW};
        var LAST_UPDATE_TIME = {@LAST_UPDATE_TIME};
index fc3c83721740760503bd7c2ee038b75aaa4990d0..9a19e4375a80226b0140de3adcee4b4ae3bff83f 100644 (file)
@@ -35,7 +35,7 @@
                var WSC_API_URL = '{@$__wcf->getActivePath()}acp/';
                var SECURITY_TOKEN = '{@SECURITY_TOKEN}';
                var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
-               var LANGUAGE_CODE = '{@$__wcf->getLanguage()->languageCode}';
+               var LANGUAGE_CODE = '{@$__wcf->getLanguage()->getFixedLanguageCode()}';
                var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};
                var TIME_NOW = {@TIME_NOW};
                var LAST_UPDATE_TIME = {@LAST_UPDATE_TIME};