From: Alexander Ebert Date: Tue, 13 Mar 2012 19:27:26 +0000 (+0100) Subject: Fixed workaround for LESS to exclude burningBoard.css X-Git-Tag: 2.0.0_Beta_1~1238 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b82f8805b2ec1386002a02637a0861852e507b0;p=GitHub%2FWoltLab%2FWCF.git Fixed workaround for LESS to exclude burningBoard.css --- diff --git a/wcfsetup/install/files/lib/util/HeaderUtil.class.php b/wcfsetup/install/files/lib/util/HeaderUtil.class.php index b3b2bc0795..96f855dc09 100644 --- a/wcfsetup/install/files/lib/util/HeaderUtil.class.php +++ b/wcfsetup/install/files/lib/util/HeaderUtil.class.php @@ -69,7 +69,7 @@ final class HeaderUtil { public static function getCompressedOutput($output) { if (defined('LESS_FILES') && LESS_FILES) { // remove .css files - $output = preg_replace('~\@import url\("(.*).css"\) screen;~U', '', $output); + $output = preg_replace('~\\@import url\("((?!burningBoard).)*.css"\) screen;~U', '', $output); $output = str_replace(array(''), array('', ''), $output); }