]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 498634: hook for global/messages.html.tmpl
authormkanat%bugzilla.org <>
Tue, 11 Aug 2009 04:36:21 +0000 (04:36 +0000)
committermkanat%bugzilla.org <>
Tue, 11 Aug 2009 04:36:21 +0000 (04:36 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

template/en/default/global/messages.html.tmpl

index 05c2a7547487c1d9e1d43be5019c6018273871f4..15100ac6b6d61b6bda72d7ebc5920554f4027026 100644 (file)
 
   [% 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 %]