summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorghendricks%novell.com <>2007-06-13 03:20:05 +0200
committerghendricks%novell.com <>2007-06-13 03:20:05 +0200
commit1649198d3c217952f5eeb5a94bd13a42891a2386 (patch)
tree585f58f5cd05b94a324b0f75beb6b13a76938de6 /template/en
parente188b153de2ed564ac20650b534b9da5a04d4b23 (diff)
downloadbugzilla-1649198d3c217952f5eeb5a94bd13a42891a2386.tar.gz
bugzilla-1649198d3c217952f5eeb5a94bd13a42891a2386.tar.xz
Bug 383520 – Need to hook code-error.html.tmpl
Patch by ghendricks r=mkanat a=mkanat
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/global/code-error.html.tmpl18
1 files changed, 12 insertions, 6 deletions
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 <code>[% error FILTER html %]</code> 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 <code>[% error FILTER html %]</code> 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 %]