From 2e24833d7cb474ec9614f44496bcf3e589f386af Mon Sep 17 00:00:00 2001 From: Jennifer Mourek Date: Fri, 14 Oct 2016 08:06:05 +0200 Subject: [PATCH] LessCompiler: Remove error message when switching to Icinga theme fixes #12660 --- library/Icinga/Web/LessCompiler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/LessCompiler.php b/library/Icinga/Web/LessCompiler.php index 7ec34a143..0419e1518 100644 --- a/library/Icinga/Web/LessCompiler.php +++ b/library/Icinga/Web/LessCompiler.php @@ -122,7 +122,9 @@ class LessCompiler 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); + if ($theme !== '/vagrant/public/css/themes/Icinga.less') { + Logger::error('Can\t load theme %s. Make sure that the theme exists and is readable', $theme); + } } return $this; }