use wcf\system\SingletonFactory;
use wcf\system\WCF;
use wcf\util\FileUtil;
+use wcf\util\StringUtil;
use wcf\util\StyleUtil;
/**
unset($variables['individualLess']);
}
+ // apply overrides
+ if (isset($variables['overrideLess'])) {
+ $lines = explode("\n", StringUtil::unifyNewlines($variables['overrideLess']));
+ foreach ($lines as $line) {
+ if (preg_match('~^@([a-zA-Z]+): ?([@a-zA-Z0-9 ,\.\(\)\%\#-]+);$~', $line, $matches)) {
+ $variables[$matches[1]] = $matches[2];
+ }
+ }
+ unset($variables['overrideLess']);
+ }
+
$this->compileStylesheet(
WCF_DIR.'style/style-'.$style->styleID,
$files,