From: Alexander Ebert Date: Thu, 10 Aug 2017 12:26:33 +0000 (+0200) Subject: Always expose the compiler flag in the ACP X-Git-Tag: 3.1.0_Alpha_1~50 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96d316162622ceecce7e0000cdf5e591e0bf4a04;p=GitHub%2FWoltLab%2FWCF.git Always expose the compiler flag in the ACP --- diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index cf91752f21..c4a5534717 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -31,10 +31,9 @@ var ENABLE_DEBUG_MODE = {if ENABLE_DEBUG_MODE}true{else}false{/if}; var ENABLE_DEVELOPER_TOOLS = {if ENABLE_DEVELOPER_TOOLS}true{else}false{/if}; - {if ENABLE_DEBUG_MODE} - {* This constant is a compiler option, it does not exist in production. *} - var COMPILER_TARGET_DEFAULT = true; - {/if} + {* This constant is a compiler option, it does not exist in production. *} + {* Unlike the frontend, this option must be defined in the ACP at all times. *} + var COMPILER_TARGET_DEFAULT = true; {js application='wcf' file='require' bundle='WoltLabSuite.Core' core='true'}