Fixed tiny builds being loaded for logged-in users
authorAlexander Ebert <ebert@woltlab.com>
Fri, 25 Aug 2017 11:23:59 +0000 (13:23 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 25 Aug 2017 11:23:59 +0000 (13:23 +0200)
Fixes #2387

wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php

index e98f9b588d45eb0d047f6ed0cb3309e36e2c327c..548903d29f5d3eb6325852a24186b4551219257d 100644 (file)
@@ -88,7 +88,7 @@ class JsFunctionTemplatePlugin implements IFunctionTemplatePlugin {
                
                $this->includedFiles[$src] = true;
                if (!ENABLE_DEBUG_MODE) {
-                       if (defined('VISITOR_USE_TINY_BUILD') && VISITOR_USE_TINY_BUILD && !empty($tagArgs['hasTiny'])) {
+                       if (defined('VISITOR_USE_TINY_BUILD') && VISITOR_USE_TINY_BUILD && !WCF::getUser()->userID && !empty($tagArgs['hasTiny'])) {
                                $src .= '.tiny';
                        }