Module: check_mk
Branch: master
Commit: 59458a730643a14927961b2af2a45870a3b1834d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=59458a730643a1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 7 09:58:33 2012 +0200
Multisite: Handling plain_error parameter also on page not found errors
---
web/htdocs/index.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index ccd09e5..c5e5377 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -409,6 +409,9 @@ def handler(req, profiling = True):
return response_code
def page_not_found():
- html.header(_("Page not found"))
- html.show_error(_("This page was not found. Sorry."))
+ if html.has_var("_plain_error"):
+ html.write(_("Page not found"))
+ else:
+ html.header(_("Page not found"))
+ html.show_error(_("This page was not found. Sorry."))
html.footer()