From 8e87bc50e29aec87c09e8f09b95e2b95fd84696a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 24 Oct 2015 20:46:49 +0200 Subject: [PATCH] Fixed Travis issues --- CodeSniff/WCF/ruleset.xml | 1 + .../install/files/lib/system/style/StyleCompiler.class.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CodeSniff/WCF/ruleset.xml b/CodeSniff/WCF/ruleset.xml index 8c7fb0a697..89816545d7 100644 --- a/CodeSniff/WCF/ruleset.xml +++ b/CodeSniff/WCF/ruleset.xml @@ -4,6 +4,7 @@ */zend/* */CodeSniff/* */parsedown/* + */scssphp/* diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index b728974a52..aafa2486af 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -1,5 +1,6 @@ compiler = new \Leafo\ScssPhp\Compiler(); + $this->compiler = new Compiler(); $this->compiler->setImportPaths([WCF_DIR]); } @@ -210,7 +211,7 @@ class StyleCompiler extends SingletonFactory { WCF_DIR.'acp/style/style', $files, $variables, - '',//file_get_contents(WCF_DIR.'acp/style/blueTemptation/individual.scss'), + '', new Callback(function($content) { // fix relative paths $content = str_replace('../font/', '../../font/', $content); -- 2.20.1