summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-08-11 06:36:21 +0200
committermkanat%bugzilla.org <>2009-08-11 06:36:21 +0200
commit2c7e92ec003d6c1a03c378d4118ef756686e4139 (patch)
tree6e902a7a9e84c2dd7045f99099233ea773ea67d8
parentea25630305fbd3b55c142c32aab82f9cc7afccfa (diff)
downloadbugzilla-2c7e92ec003d6c1a03c378d4118ef756686e4139.tar.gz
bugzilla-2c7e92ec003d6c1a03c378d4118ef756686e4139.tar.xz
Bug 498634: hook for global/messages.html.tmpl
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
-rw-r--r--template/en/default/global/messages.html.tmpl15
1 files changed, 10 insertions, 5 deletions
diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl
index 05c2a7547..15100ac6b 100644
--- a/template/en/default/global/messages.html.tmpl
+++ b/template/en/default/global/messages.html.tmpl
@@ -797,16 +797,21 @@
[% ELSIF message_tag == "workflow_updated" %]
The workflow has been updated.
+ [% END %]
+[% END %]
- [% ELSE %]
- [%# Give sensible error if error functions are used incorrectly.
- #%]
+[% IF !message %]
+ [% message = Hook.process('messages') %]
+[% END %]
+
+[%# Give sensible error if the message function is used incorrectly. #%]
+[% IF !message %]
+ [% message = BLOCK %]
You are using [% terms.Bugzilla %]'s messaging functions incorrectly. You
passed in the string '[% message_tag %]'. The correct use is to pass
in a tag, and define that tag in the file messages.html.tmpl.<br>
<br>
- If you are a [% terms.Bugzilla %] end-user seeing this message, please
+ If you are a [% terms.Bugzilla %] end-user seeing this message, please
save this page and send it to [% Param('maintainer') %].
-
[% END %]
[% END %]