Module: check_mk
Branch: master
Commit: ad81f67e81ea922aad6eb5e5ed85e10a36adfbd1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ad81f67e81ea92…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 16 16:03:57 2011 +0200
Multisite: avoid warning in apache log
---
web/htdocs/sidebar.py | 3 +--
web/htdocs/views.py | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 45e1f16..24efa14 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -36,10 +36,9 @@ loaded_with_language = False
sidebar_snapins = {}
def load_plugins():
+ global loaded_with_language
if loaded_with_language == current_language:
return
-
- global loaded_with_language
loaded_with_language = current_language
# Load all snapins
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index d1685fe..ffa2a19 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -51,10 +51,9 @@ multisite_painter_options = {}
# Load all view plugins
def load_plugins():
+ global loaded_with_language
if loaded_with_language == current_language:
return
-
- global loaded_with_language
loaded_with_language = current_language
config.declare_permission_section("action", "Commands on
Objects")