]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 383520 รข\80\93 Need to hook code-error.html.tmpl
authorghendricks%novell.com <>
Wed, 13 Jun 2007 01:25:50 +0000 (01:25 +0000)
committerghendricks%novell.com <>
Wed, 13 Jun 2007 01:25:50 +0000 (01:25 +0000)
Patch by ghendricks r=mkanat a=mkanat

template/en/default/global/code-error.html.tmpl

index 50f7f2de210a99301bade8e9524aa7d372c2a701..239876bb39fa80c6686a056e2ff350220ee6cf8d 100644 (file)
     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 %]