summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreed%reedloden.com <>2009-11-18 19:23:32 +0100
committerreed%reedloden.com <>2009-11-18 19:23:32 +0100
commitc0c052e34345a0a3cc2be95b9881bf91005da69a (patch)
tree53f92d1e5d9edd9e90eac3f275717b95922b3f4b
parentc3191f69905d45eb91b126606b58a7a8f83f6d1c (diff)
downloadbugzilla-c0c052e34345a0a3cc2be95b9881bf91005da69a.tar.gz
bugzilla-c0c052e34345a0a3cc2be95b9881bf91005da69a.tar.xz
Bug 360626 - "ThrowTemplateError() used in Util.pm" [p=reed r=LpSolit a=LpSolit]
-rw-r--r--Bugzilla/Util.pm6
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;