Skip to content
Snippets Groups Projects
Commit 557f8753 authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes.

parent 98441c03
No related merge requests found
...@@ -92,7 +92,7 @@ class LessCompiler ...@@ -92,7 +92,7 @@ class LessCompiler
if (!file_exists($config)) { if (!file_exists($config)) {
return; return;
} }
$config = include($config); $config = include $config;
if (!isset($config['less'])) { if (!isset($config['less'])) {
Console::writeLine("No LESS in " . $theme); Console::writeLine("No LESS in " . $theme);
return; return;
......
...@@ -116,7 +116,9 @@ class HeadLink extends \Zend\View\Helper\HeadLink ...@@ -116,7 +116,9 @@ class HeadLink extends \Zend\View\Helper\HeadLink
} catch (\Exception $e) { } catch (\Exception $e) {
error_log($e->getMessage()); error_log($e->getMessage());
list($fileName, ) = explode('.', $file); list($fileName, ) = explode('.', $file);
$this->prependStylesheet($urlHelper('home') . "themes/$currentTheme/css/" . $fileName . '.css'); $this->prependStylesheet(
$urlHelper('home') . "themes/{$currentTheme}/css/{$fileName}.css"
);
} }
} }
...@@ -145,6 +147,8 @@ class HeadLink extends \Zend\View\Helper\HeadLink ...@@ -145,6 +147,8 @@ class HeadLink extends \Zend\View\Helper\HeadLink
$scss->setFormatter('scss_formatter_compressed'); $scss->setFormatter('scss_formatter_compressed');
$css = $scss->compile('@import "' . $file . '"'); $css = $scss->compile('@import "' . $file . '"');
file_put_contents($outputFile, $css); file_put_contents($outputFile, $css);
$this->prependStylesheet($urlHelper('home') . "themes/$currentTheme/css/scss/" . $fileName . '.css'); $this->prependStylesheet(
$urlHelper('home') . "themes/{$currentTheme}/css/scss/{$fileName}.css"
);
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment