parent
bf0b673640
commit
cce6af9243
|
@ -116,8 +116,11 @@ class LessCompiler
|
|||
*/
|
||||
public function setTheme($theme)
|
||||
{
|
||||
Logger::debug($theme);
|
||||
$this->theme = $theme;
|
||||
if (is_file($theme) && is_readable($theme)) {
|
||||
$this->theme = $theme;
|
||||
} else {
|
||||
Logger::error('Can\t load theme %s. Make sure that the theme exists and is readable', $theme);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue