From c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Wed, 18 Sep 2002 06:28:22 +0000 Subject: 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. --- post_bug.cgi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'post_bug.cgi') 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); -- cgit v1.2.3-24-g4f1b