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:
gerv%gerv.net
2002-09-17 23:28:24 +00:00
parent 4656ad4745
commit 241f6ae46e
6 changed files with 33 additions and 125 deletions

View File

@@ -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);