Always expose the compiler flag in the ACP
authorAlexander Ebert <ebert@woltlab.com>
Thu, 10 Aug 2017 12:26:33 +0000 (14:26 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 10 Aug 2017 12:26:33 +0000 (14:26 +0200)
wcfsetup/install/files/acp/templates/header.tpl

index cf91752f216c9147e4f447aeb6e0c66a614736e7..c4a5534717dabef3a90497d0ca51cf78619a09cf 100644 (file)
                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;
        </script>
        
        {js application='wcf' file='require' bundle='WoltLabSuite.Core' core='true'}