summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 734b5978d..e6b77f8ea 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -256,8 +256,11 @@ foreach my $dep (@{$bug->dependson || []}, @{$bug->blocked || []}) {
}
$vars->{sentmail} = \@all_mail_results;
+$format = $template->get_format("bug/create/created",
+ scalar($cgi->param('created-format')),
+ "html");
print $cgi->header();
-$template->process("bug/create/created.html.tmpl", $vars)
+$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());
1;