Fixed workaround for LESS to exclude burningBoard.css
authorAlexander Ebert <ebert@woltlab.com>
Tue, 13 Mar 2012 19:27:26 +0000 (20:27 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 13 Mar 2012 19:27:26 +0000 (20:27 +0100)
wcfsetup/install/files/lib/util/HeaderUtil.class.php

index b3b2bc07957f4380e814d1650f6ba1a220aef33f..96f855dc0980020112785947f7b5a0ecd843b950 100644 (file)
@@ -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('<!-- LESS_FILES', 'LESS_FILES -->'), array('', ''), $output);
                }