Fixed condition for ACP JavaScript rewrite
authorAlexander Ebert <ebert@woltlab.com>
Mon, 26 Sep 2016 16:19:57 +0000 (18:19 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 26 Sep 2016 16:19:57 +0000 (18:19 +0200)
wcfsetup/install/files/lib/util/HeaderUtil.class.php

index 47ec6c98dd600fb91fe5503845d12d8440b66116..347332a420ce61cc94afff2edeb4af3db337a26f 100644 (file)
@@ -106,7 +106,7 @@ final class HeaderUtil {
        public static function parseOutput($output) {
                self::$output = $output;
                
-               if (PACKAGE_ID && RequestHandler::getInstance()->isACPRequest()) {
+               if (!PACKAGE_ID || RequestHandler::getInstance()->isACPRequest()) {
                        // force javascript relocation
                        self::$output = preg_replace('~<script([^>]*)>~', '<script data-relocate="true"\\1>', self::$output);
                }