From 2c7e92ec003d6c1a03c378d4118ef756686e4139 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 11 Aug 2009 04:36:21 +0000 Subject: Bug 498634: hook for global/messages.html.tmpl Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- template/en/default/global/messages.html.tmpl | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'template') 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.

- 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 %] -- cgit v1.2.3-24-g4f1b