Module: check_mk
Branch: master
Commit: f8b022b749b1bed9ccf6f2ea0748549b21b866bd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f8b022b749b1be…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jun 2 14:16:16 2015 +0200
Fix loading custom css files in local/
---
web/htdocs/htmllib.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 4d75dd1..958bc6a 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -802,7 +802,9 @@ class html:
# Load all specified style sheets and all user style sheets in htdocs/css
for css in [ "check_mk", "graphs" ] + stylesheets + [
'ie' ]:
if defaults.omd_root:
- if os.path.exists(defaults.omd_root +
"/share/check_mk/web/htdocs/" + css + ".css"):
+ rel_path = "/share/check_mk/web/htdocs/" + css +
".css"
+ if os.path.exists(defaults.omd_root + rel_path) or \
+ os.path.exists(defaults.omd_root + "/local" +
rel_path):
fname = '%s-%s.css' % (css, defaults.check_mk_version)
else:
continue