[icinga-checkins] icinga.org: icingaweb2/master: LessCompiler: Remove error message when switching to Icinga theme

git at icinga.org git at icinga.org
Fri Oct 14 13:34:29 CEST 2016


Module: icingaweb2
Branch: master
Commit: 2e24833d7cb474ec9614f44496bcf3e589f386af
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=2e24833d7cb474ec9614f44496bcf3e589f386af

Author: Jennifer Mourek <jennifer.mourek at netways.de>
Date:   Fri Oct 14 08:06:05 2016 +0200

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 7ec34a1..0419e15 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;
     }



More information about the icinga-checkins mailing list