diff options
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index 8d21f1505..430ae37a8 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -59,11 +59,9 @@ my $comment; $vars->{'form'} = \%::FORM; -# We can't use ValidateOutputFormat here because it defaults to HTML. -my $template_name = "bug/create/comment"; -$template_name .= ($::FORM{'format'} ? "-$::FORM{'format'}" : ""); +my $format = GetFormat("bug/create/comment", $::FORM{'format'}, "txt"); -$template->process("$template_name.txt.tmpl", $vars, \$comment) +$template->process($format->{'template'}, $vars, \$comment) || ThrowTemplateError($template->error()); ValidateComment($comment); |