From 2a5664ad1abf679b9e50a6c409902ce2ef638cc5 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 25 Aug 2005 21:02:39 +0000 Subject: Bug 208761: Move GetFormat() from globals.pl into Bugzilla::Template - Patch by Frédéric Buclin r=wicked a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- summarize_time.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'summarize_time.cgi') 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()); -- cgit v1.2.3-24-g4f1b