Browse Source

bugfix: js tracker content was read from file on each request.

Damien ACCORSI 10 years ago
parent
commit
116f8f5701
1 changed files with 1 additions and 7 deletions
  1. 1 7
      tracim/tracim/lib/helpers.py

+ 1 - 7
tracim/tracim/lib/helpers.py View File

@@ -65,13 +65,7 @@ class ICON(object):
65 65
   Private = '<i class="fa fa-key"></i>'
66 66
 
67 67
 def tracker_js():
68
-    js_file_path = tg.config.get('js_tracker_path', None)
69
-    if js_file_path is not None:
70
-        with open (js_file_path, "r") as js_file:
71
-            data=js_file.read()
72
-        return data
73
-    else:
74
-        return ""
68
+    return CFG.get_instance().TRACKER_JS_CONTENT
75 69
 
76 70
 def IconPath(icon_size, icon_path):
77 71
     return tg.url('/assets/icons/{0}x{0}/{1}.png'.format(icon_size, icon_path))