From: Matthias Schmidt Date: Sat, 5 Aug 2017 13:26:36 +0000 (+0200) Subject: Fix `COMPILER_TARGET_DEFAULT` in debug mode X-Git-Tag: 3.1.0_Alpha_1~84 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bde865af972b9998c8aa5a696a2e9d9addca42d9;p=GitHub%2FWoltLab%2FWCF.git Fix `COMPILER_TARGET_DEFAULT` in debug mode --- diff --git a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl index fba84fd294..1fca4b96b2 100644 --- a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl +++ b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl @@ -17,7 +17,7 @@ {if ENABLE_DEBUG_MODE} {* This constant is a compiler option, it does not exist in production. *} - var COMPILER_TARGET_DEFAULT = {if $__wcf->user->userID}true{else}false{/if}; + var COMPILER_TARGET_DEFAULT = {if !VISITOR_USE_TINY_BUILD || $__wcf->user->userID}true{else}false{/if}; {/if} diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index 48af7fe86b..cf91752f21 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -33,7 +33,7 @@ {if ENABLE_DEBUG_MODE} {* This constant is a compiler option, it does not exist in production. *} - var COMPILER_TARGET_DEFAULT = {if $__wcf->user->userID}true{else}false{/if}; + var COMPILER_TARGET_DEFAULT = true; {/if}