Module: check_mk
Branch: master
Commit: 908ace29c5fb1fb5557d697eff2cae3005d015f6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=908ace29c5fb1f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 4 14:43:57 2016 +0100
Fixed needless try to reimport all plugins when user is not using a custom localization
---
web/htdocs/index.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index 61f7769..7e8abc7 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -109,8 +109,11 @@ def handler(req, fields = None, is_profiling = False):
# has been initialized
i18n.localize(html.var("lang", config.get_language()))
- # All plugins might have to be reloaded due to a language change
- modules.load_all_plugins()
+ # 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 != None:
+ modules.load_all_plugins()
# User allowed to login at all?
if not config.may("general.use"):