diff options
author | reed%reedloden.com <> | 2009-11-18 19:23:32 +0100 |
---|---|---|
committer | reed%reedloden.com <> | 2009-11-18 19:23:32 +0100 |
commit | c0c052e34345a0a3cc2be95b9881bf91005da69a (patch) | |
tree | 53f92d1e5d9edd9e90eac3f275717b95922b3f4b /Bugzilla | |
parent | c3191f69905d45eb91b126606b58a7a8f83f6d1c (diff) | |
download | bugzilla-c0c052e34345a0a3cc2be95b9881bf91005da69a.tar.gz bugzilla-c0c052e34345a0a3cc2be95b9881bf91005da69a.tar.xz |
Bug 360626 - "ThrowTemplateError() used in Util.pm" [p=reed r=LpSolit a=LpSolit]
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Util.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index b5e99bf69..48ac06502 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -593,8 +593,10 @@ sub get_text { $vars ||= {}; $vars->{'message'} = $name; my $message; - $template->process('global/message.txt.tmpl', $vars, \$message) - || ThrowTemplateError($template->error()); + if (!$template->process('global/message.txt.tmpl', $vars, \$message)) { + require Bugzilla::Error; + Bugzilla::Error::ThrowTemplateError($template->error()); + } # Remove the indenting that exists in messages.html.tmpl. $message =~ s/^ //gm; return $message; |