diff --git a/library/Icinga/Web/LessCompiler.php b/library/Icinga/Web/LessCompiler.php index 33c0f8e83..13205f73c 100644 --- a/library/Icinga/Web/LessCompiler.php +++ b/library/Icinga/Web/LessCompiler.php @@ -8,7 +8,6 @@ use RecursiveDirectoryIterator; use RecursiveIteratorIterator; use RegexIterator; use RecursiveRegexIterator; -use Zend_Controller_Front; use Icinga\Application\Icinga; use lessc; @@ -31,8 +30,6 @@ class LessCompiler */ private $lessc; - private $baseUrl; - private $source; /** @@ -44,6 +41,17 @@ class LessCompiler $this->lessc = new lessc(); } + /** + * Disable the extendend import functionality + * + * @return $this + */ + public function disableExtendedImport() + { + $this->lessc->importDisabled = true; + return $this; + } + public function compress() { $this->lessc->setPreserveComments(false); diff --git a/library/Icinga/Web/StyleSheet.php b/library/Icinga/Web/StyleSheet.php index 5f92e83a7..2e8ecea2c 100644 --- a/library/Icinga/Web/StyleSheet.php +++ b/library/Icinga/Web/StyleSheet.php @@ -99,6 +99,7 @@ class StyleSheet } $less = new LessCompiler(); + $less->disableExtendedImport(); foreach ($lessFiles as $file) { $less->addFile($file); }