Commit 2c7e92ec authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 498634: hook for global/messages.html.tmpl

Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent ea256303
......@@ -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 %]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment