Fix `COMPILER_TARGET_DEFAULT` in debug mode
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 13:26:36 +0000 (15:26 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 13:26:36 +0000 (15:26 +0200)
com.woltlab.wcf/templates/headIncludeJavaScript.tpl
wcfsetup/install/files/acp/templates/header.tpl

index fba84fd2943d247222e24d43bcf7401ddf4d1ace..1fca4b96b2cfd1f6b0196d35d4fade953eb2d6fc 100644 (file)
@@ -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}
 </script>
 
index 48af7fe86beb709c51538867119395ac2836c4e7..cf91752f216c9147e4f447aeb6e0c66a614736e7 100644 (file)
@@ -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}
        </script>