[checkmk-commits] Check_MK Git: check_mk: Fixed wrong js file names

Lars Michelsen lm at mathias-kettner.de
Fri Apr 17 19:37:56 CEST 2015


Module: check_mk
Branch: master
Commit: de74df3b03034a8c2acf65b6f3b3bea88569332f
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=de74df3b03034a8c2acf65b6f3b3bea88569332f

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Fri Apr 17 19:37:37 2015 +0200

Fixed wrong js file names

---

 web/htdocs/htmllib.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 5a24940..857f142 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -794,9 +794,9 @@ class html:
             for js in [ "checkmk", "graphs" ] + javascripts:
                 if defaults.omd_root:
                     if os.path.exists(defaults.omd_root + "/share/check_mk/web/htdocs/js/" + js + ".js"):
-                        fname = '%s-%s.js' % (js, defaults.check_mk_version)
+                        fname = '%s-%s' % (js, defaults.check_mk_version)
                 else:
-                    fname = '%s.js' % js
+                    fname = '%s' % js
                 self.javascript_file(fname)
 
             if self.browser_reload != 0:



More information about the checkmk-commits mailing list