From cf2298c98a9aca3b5fe79d5af4085d631aee200e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 24 May 2011 15:32:23 +0800 Subject: Bug 655210: Allows custom bug creation formats to specify a "created" format r=dkl, a=LpSolit --- post_bug.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'post_bug.cgi') 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; -- cgit v1.2.3-24-g4f1b