summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-09-18 08:28:22 +0200
committergerv%gerv.net <>2002-09-18 08:28:22 +0200
commitc491adcb47a55a68b7c234b03b7a3e4cd8b2fda8 (patch)
tree1e4b217ca1d33c5eb8f87321cd6fc2226bbc1210 /post_bug.cgi
parent229bf2d0d7a6c7b48b25e4d9c08c038184340a8a (diff)
downloadbugzilla-c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8.tar.gz
bugzilla-c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8.tar.xz
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.
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi6
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);