[icinga-checkins] icinga.org: icingaweb2/master: StyleSheet: Don' t try to load the icinga default theme

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


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

Author: Jennifer Mourek <jennifer.mourek at netways.de>
Date:   Fri Oct 14 13:24:17 2016 +0200

StyleSheet: Don't try to load the icinga default theme

refs #12660

---

 library/Icinga/Web/StyleSheet.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/StyleSheet.php b/library/Icinga/Web/StyleSheet.php
index 8a7ffa3..549e11c 100644
--- a/library/Icinga/Web/StyleSheet.php
+++ b/library/Icinga/Web/StyleSheet.php
@@ -127,7 +127,7 @@ class StyleSheet
             }
         }
 
-        if ($theme) {
+        if ($theme && $theme !== self::DEFAULT_THEME) {
             if (($pos = strpos($theme, '/')) !== false) {
                 $moduleName = substr($theme, 0, $pos);
                 $theme = substr($theme, $pos + 1);



More information about the icinga-checkins mailing list