Module: check_mk
Branch: master
Commit: ac4d50feeaf6732fc2b81b23361a405f82e6906f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ac4d50feeaf673…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Oct 22 15:16:53 2013 +0200
Fixed invalid function call in latest change
---
web/htdocs/sidebar.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 672c2af..f8c6ddc 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -565,7 +565,7 @@ def ajax_del_bookmark():
try:
del bookmarks[num]
except IndexError:
- raise MKGeneralException(_("Unknown bookmark id: %d. This is probably a
problem with reload or browser history. Please try again.") %
htmllib.attrencode(num))
+ raise MKGeneralException(_("Unknown bookmark id: %d. This is probably a
problem with reload or browser history. Please try again.") % html.attrencode(num))
save_bookmarks(bookmarks)
render_bookmarks()
@@ -597,7 +597,7 @@ def page_edit_bookmark():
raise MKGeneralException(_("Invalid bookmark id."))
bookmarks = load_bookmarks()
if n >= len(bookmarks):
- raise MKGeneralException(_("Unknown bookmark id: %d. This is probably a
problem with reload or browser history. Please try again.") % htmllib.attrencode(n))
+ raise MKGeneralException(_("Unknown bookmark id: %d. This is probably a
problem with reload or browser history. Please try again.") % html.attrencode(n))
if html.var("save") and html.check_transaction():
title = html.var("title")