Bug 146495 - clean up format ambiguities. We now have separate "format" and "ctype" parameters. Also fixes bug 140513, bug 143604, and bug 148133. Patch by gerv; r=myk.
git-svn-id: svn://10.0.0.236/trunk@129841 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user