Module: check_mk
Branch: master
Commit: 1fae71c9de291e06bf48a765cdce9d4778e360cd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1fae71c9de291e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jan 7 21:12:05 2011 +0100
Multisite: fix PNP icon url for multi sites
---
web/plugins/views/painters.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 6031e20..9e13488 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -128,7 +128,7 @@ def pnp_url(row, what = 'graph'):
url = site["url_prefix"] +
("pnp4nagios/index.php/%s?host=%s&srv=%s" % \
(what, htmllib.urlencode(host), htmllib.urlencode(svc)))
if what == 'graph':
- url += "&theme=multisite&baseurl=%scheck_mk/" %
htmllib.urlencode(defaults.url_prefix)
+ url += "&theme=multisite&baseurl=%scheck_mk/" %
htmllib.urlencode(site["url_prefix"])
return url
def pnp_popup_url(row):