From 1649198d3c217952f5eeb5a94bd13a42891a2386 Mon Sep 17 00:00:00 2001
From: "ghendricks%novell.com" <>
Date: Wed, 13 Jun 2007 01:20:05 +0000
Subject: =?UTF-8?q?Bug=20383520=20=C3=A2=C2=80=C2=93=20Need=20to=20hook=20?=
=?UTF-8?q?code-error.html.tmpl=20Patch=20by=20ghendricks=20r=3Dmkanat=20a?=
=?UTF-8?q?=3Dmkanat?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
template/en/default/global/code-error.html.tmpl | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
(limited to 'template')
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
index 760d81043..722173bde 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -426,12 +426,18 @@
Invalid setting for post_bug_submit_action
[% ELSE %]
- [% title = "Internal error" %]
- An internal error has occurred, but [% terms.Bugzilla %] doesn't know
- what [% error FILTER html %]
means.
-
- If you are a [% terms.Bugzilla %] end-user seeing this message, please save
- this page and send it to [% Param('maintainer') %].
+ [%# Try to find hooked error messages %]
+ [% error_message = Hook.process("errors") %]
+ [% IF NOT error_message %]
+ [% title = "Internal error" %]
+ An internal error has occurred, but [% terms.Bugzilla %] doesn't know
+ what [% error FILTER html %]
means.
+
+ If you are a [% terms.Bugzilla %] end-user seeing this message, please save
+ this page and send it to [% Param('maintainer') %].
+ [% ELSE %]
+ [% error_message FILTER none %]
+ [% END %]
[% END %]
[% END %]
--
cgit v1.2.1