]> 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:20:05 +0000 (01:20 +0000)
committerghendricks%novell.com <>
Wed, 13 Jun 2007 01:20:05 +0000 (01:20 +0000)
Patch by ghendricks r=mkanat a=mkanat

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

index 760d81043440b4ed579b9e066a7d9d5cbaab419d..722173bdec14da4ab5757c9c56a5608b8f87a694 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 %]