From 28c27f83861e7abdf3959980134d184242a68514 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 26 Sep 2016 18:19:57 +0200 Subject: [PATCH] Fixed condition for ACP JavaScript rewrite --- wcfsetup/install/files/lib/util/HeaderUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/HeaderUtil.class.php b/wcfsetup/install/files/lib/util/HeaderUtil.class.php index 47ec6c98dd..347332a420 100644 --- a/wcfsetup/install/files/lib/util/HeaderUtil.class.php +++ b/wcfsetup/install/files/lib/util/HeaderUtil.class.php @@ -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('~]*)>~', '