Fixed issue
authorAlexander Ebert <ebert@woltlab.com>
Wed, 7 Sep 2016 10:23:34 +0000 (12:23 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 7 Sep 2016 10:23:34 +0000 (12:23 +0200)
wcfsetup/install/files/lib/util/HeaderUtil.class.php

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