summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 7aa6dfc66..a779aa85d 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -382,8 +382,9 @@ if ($::usergroupset ne '0') {
$vars->{'default'} = \%default;
-my $format = ValidateOutputFormat($::FORM{'format'}, "create", "bug/create");
+my $format =
+ GetFormat("bug/create/create", $::FORM{'format'}, $::FORM{'ctype'});
-print "Content-type: $format->{'contenttype'}\n\n";
-$template->process("bug/create/$format->{'template'}", $vars)
+print "Content-type: $format->{'ctype'}\n\n";
+$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());