Module: check_mk
Branch: master
Commit: f90c0530c07cafc937e9b66086eaf8a26512ef4b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f90c0530c07caf…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 8 12:18:09 2011 +0200
Minor code optimization for WATO titles in Multisite
---
web/plugins/views/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/plugins/views/wato.py b/web/plugins/views/wato.py
index 827c13b..21da9bb 100644
--- a/web/plugins/views/wato.py
+++ b/web/plugins/views/wato.py
@@ -78,9 +78,9 @@ class FilterWatoFile(Filter):
# file titles and so on.
# The call below needs to use some sort of indicator wether the cache needs
# to be renewed or not.
- self.load_wato_data()
current = html.var(self.name)
if current and current != "/":
+ self.load_wato_data()
return self.path_to_tree.get(current)