Indent the JavaScript part in the template correctly
authorCyperghost <olaf_schmitz_1@t-online.de>
Fri, 6 Sep 2024 08:57:09 +0000 (10:57 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 6 Sep 2024 08:57:09 +0000 (10:57 +0200)
com.woltlab.wcf/templates/headIncludeJavaScript.tpl
wcfsetup/install/files/acp/templates/header.tpl

index aec2dfe1f9c3a8fdc35fe871ae61072b89b589bb..3bb9f1411107d40eca9f8fa5a39bc279d9564794 100644 (file)
@@ -4,8 +4,8 @@
 
 <script data-cfasync="false">
        var WCF_PATH = '{@$__wcf->getPath()}';
-    var WSC_API_URL = '{@$__wcf->getPath()}';
-    var WSC_RPC_API_URL = '{link controller="Api" id="rpc"}{/link}';
+       var WSC_API_URL = '{@$__wcf->getPath()}';
+       var WSC_RPC_API_URL = '{link controller="Api" id="rpc"}{/link}';
        {* The SECURITY_TOKEN is defined in wcf.globalHelper.js *}
        var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
        var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};
index ce1718575f1bbfd7ea18bc19cbee3581b6ba05db..09f6a8faf49e8b87e4867a5b9134dcbc8dcfb2ea 100644 (file)
@@ -50,7 +50,7 @@
        <script data-eager="true">
                var WCF_PATH = '{@$__wcf->getPath()}';
                var WSC_API_URL = '{@$__wcf->getPath()}acp/';
-        var WSC_RPC_API_URL = '{link controller="Api" forceFrontend=true id="rpc"}{/link}';
+               var WSC_RPC_API_URL = '{link controller="Api" forceFrontend=true id="rpc"}{/link}';
                {* The SECURITY_TOKEN is defined in wcf.globalHelper.js *}
                var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
                var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};