Commit c0c052e3 authored by reed%reedloden.com's avatar reed%reedloden.com

Bug 360626 - "ThrowTemplateError() used in Util.pm" [p=reed r=LpSolit a=LpSolit]

parent c3191f69
...@@ -593,8 +593,10 @@ sub get_text { ...@@ -593,8 +593,10 @@ sub get_text {
$vars ||= {}; $vars ||= {};
$vars->{'message'} = $name; $vars->{'message'} = $name;
my $message; my $message;
$template->process('global/message.txt.tmpl', $vars, \$message) if (!$template->process('global/message.txt.tmpl', $vars, \$message)) {
|| ThrowTemplateError($template->error()); require Bugzilla::Error;
Bugzilla::Error::ThrowTemplateError($template->error());
}
# Remove the indenting that exists in messages.html.tmpl. # Remove the indenting that exists in messages.html.tmpl.
$message =~ s/^ //gm; $message =~ s/^ //gm;
return $message; return $message;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment