summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default')
-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 %]