Module: check_mk
Branch: master
Commit: 02ae3a5261c2c5e0029cad02bd8bd5825fd49af2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=02ae3a5261c2c5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 18 13:31:17 2012 +0100
FIX: Fixed problem with duplicate extra_buttons when using the i18n of multiisite
---
ChangeLog | 1 +
web/htdocs/wato.py | 8 +++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bba9e47..f05e854 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -53,6 +53,7 @@
* Using Username as default value for full names when editing users
* FIX: Fixed missing folders in "move to" dropdown fields
* FIX: Fixed "move to target folders" after CSV import
+ * FIX: Fixed problem with duplicate extra_buttons when using the i18n of multiisite
BI:
* improve doc/treasures/check_bi_local.py: local check that creates
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 181857e..56d12a8 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9606,16 +9606,18 @@ modes = {
"edit_hosttag" : (["hosttags"], mode_edit_hosttag),
}
-extra_buttons = [
-]
-
loaded_with_language = False
def load_plugins():
+ global extra_buttons
global loaded_with_language
if loaded_with_language == current_language:
return
loaded_with_language = current_language
+ # Reset global vars
+ global extra_buttons
+ extra_buttons = []
+
# Declare WATO-specific permissions
config.declare_permission_section("wato", _("WATO - Check_MK's Web
Administration Tool"))