Module: check_mk
Branch: master
Commit: a553c83cc3ac5a031ba6633fdf5276e5af2da19d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a553c83cc3ac5a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 26 11:30:09 2016 +0200
Minor cleanup and note update
---
web/htdocs/index.py | 4 ++--
web/htdocs/modules.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index abfddc8..76ea094 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -112,13 +112,13 @@ def handler(req, fields = None, is_profiling = False):
# Initialize the multiste i18n. This will be replaced by
# language settings stored in the user profile after the user
# has been initialized
- previous_language = current_language
+ previous_language = i18n.get_current_language()
i18n.localize(html.var("lang", config.get_language()))
# All plugins might have to be reloaded due to a language change. Only trigger
# a second plugin loading when the user is really using a custom localized GUI.
# Otherwise the load_all_plugins() at the beginning of the request is
sufficient.
- if current_language != previous_language:
+ if i18n.get_current_language() != previous_language:
modules.load_all_plugins()
# User allowed to login at all?
diff --git a/web/htdocs/modules.py b/web/htdocs/modules.py
index 6096433..6113883 100644
--- a/web/htdocs/modules.py
+++ b/web/htdocs/modules.py
@@ -86,7 +86,7 @@ def init_modules():
# Load the list of internal hard coded modules
for module_name in internal_module_names:
- # FIXME: use __import__
+ # TODO: use __import__
modules.append(import_module(module_name))
# Load all multisite pages which will also perform imports of the needed modules
@@ -102,7 +102,7 @@ g_all_modules_loaded = False
def load_all_plugins():
global g_all_modules_loaded
- # CLEANUP: Move this to the pagehandlers if this concept works out.
+ # TODO: CLEANUP: Move this to the pagehandlers if this concept works out.
if html.myfile == "ajax_graph" and g_all_modules_loaded:
only_modules = ["metrics"]
else: