Module: check_mk
Branch: master
Commit: f9c68951cd196739479c3b41c21f3276778b3ccc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f9c68951cd1967…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 2 14:31:25 2015 +0100
Fixed exception when switching to localized GUI
---
web/htdocs/i18n.py | 2 +-
web/htdocs/wato.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/i18n.py b/web/htdocs/i18n.py
index 1fedc7c..cef85e8 100644
--- a/web/htdocs/i18n.py
+++ b/web/htdocs/i18n.py
@@ -24,7 +24,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-import __builtin__, os
+import __builtin__, os, gettext
import defaults
#.
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 8778a59..9ae4a62 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -120,7 +120,7 @@ from hashlib import sha256
from lib import *
from valuespec import *
import forms
-import modules
+import modules as multisite_modules
class MKAutomationException(Exception):
@@ -16865,7 +16865,7 @@ def page_user_profile(change_pw=False):
# load the new language
i18n.localize(config.get_language())
- modules.load_all_plugins()
+ multisite_modules.load_all_plugins()
user = users.get(config.user_id)
if config.may('general.edit_notifications') and
user.get("notifications_enabled"):