diff --git a/common/framework/formatter.php b/common/framework/formatter.php index 16d013378..fc9f9136e 100644 --- a/common/framework/formatter.php +++ b/common/framework/formatter.php @@ -238,10 +238,10 @@ class Formatter $scss_compiler->setImportPaths(array(dirname(is_array($source_filename) ? array_first($source_filename) : $source_filename))); if ($variables) { - $scss_compiler->setVariables($variables); + $scss_compiler->addVariables(array_map('\ScssPhp\ScssPhp\ValueConverter::parseValue', $variables)); } - $content = $scss_compiler->compile($content) . "\n"; + $content = $scss_compiler->compileString($content)->getCss() . "\n"; $content = strpos($content, '@charset') === false ? ('@charset "UTF-8";' . "\n" . $content) : $content; $result = true; }