diff options
author | lpsolit%gmail.com <> | 2005-08-25 23:02:39 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-25 23:02:39 +0200 |
commit | 2a5664ad1abf679b9e50a6c409902ce2ef638cc5 (patch) | |
tree | 96de597ded0b88bd26e51f75e86a7d66c4305b7f /summarize_time.cgi | |
parent | f1f97d1ce4e9d90680aca0adc97e7b5f97c6cc25 (diff) | |
download | bugzilla-2a5664ad1abf679b9e50a6c409902ce2ef638cc5.tar.gz bugzilla-2a5664ad1abf679b9e50a6c409902ce2ef638cc5.tar.xz |
Bug 208761: Move GetFormat() from globals.pl into Bugzilla::Template - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'summarize_time.cgi')
-rwxr-xr-x | summarize_time.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/summarize_time.cgi b/summarize_time.cgi index 31aedd9e1..c04a956d7 100755 --- a/summarize_time.cgi +++ b/summarize_time.cgi @@ -485,10 +485,9 @@ $vars->{'check_time'} = \&check_time; $vars->{'sort_bug_keys'} = \&sort_bug_keys; $vars->{'GetBugLink'} = \&GetBugLink; -$ctype = "html" if !$ctype; -my $format = GetFormat("bug/summarize-time", undef, $ctype); +my $format = $template->get_format("bug/summarize-time", undef, $ctype); # Get the proper content-type -print $cgi->header(-type=> Bugzilla::Constants::contenttypes->{$ctype}); +print $cgi->header(-type=> $format->{'ctype'}); $template->process("$format->{'template'}", $vars) || ThrowTemplateError($template->error()); |