From: ghendricks%novell.com <>
Date: Wed, 13 Jun 2007 01:25:50 +0000 (+0000)
Subject: Bug 383520 â Need to hook code-error.html.tmpl
X-Git-Tag: bugzilla-3.0.1~65
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4907890adb4a68b0e9de6be97db19998fefaf7ee;p=thirdparty%2Fbugzilla.git
Bug 383520 â Need to hook code-error.html.tmpl
Patch by ghendricks r=mkanat a=mkanat
---
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
index 50f7f2de21..239876bb39 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -429,12 +429,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 %]