Bug 138904 - post_bug templates should be separate. Patch by gerv, 2xr=myk.

git-svn-id: svn://10.0.0.236/trunk@120149 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gerv%gerv.net
2002-04-28 22:05:31 +00:00
parent ccd4b6d15d
commit af4cd449d1

View File

@@ -58,7 +58,11 @@ my $comment;
$vars->{'form'} = \%::FORM;
$template->process("bug/create/initial-comment.txt.tmpl", $vars, \$comment)
# We can't use ValidateOutputFormat here because it defaults to HTML.
my $template_name = "bug/create/comment";
$template_name .= ($::FORM{'format'} ? "-$::FORM{'format'}" : "");
$template->process("$template_name.txt.tmpl", $vars, \$comment)
|| ThrowTemplateError($template->error());
ValidateComment($comment);