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 {
$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;
......
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