From e7d2b86c2765c3a8e853526683ceacdb260a7996 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 22 Jul 2005 12:13:36 +0000 Subject: Bug 301507: Move PutHeader and PutFooter into Template.pm - Patch by Frédéric Buclin r/a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reports.cgi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'reports.cgi') diff --git a/reports.cgi b/reports.cgi index c5314b33e..bdd8e9352 100755 --- a/reports.cgi +++ b/reports.cgi @@ -63,6 +63,7 @@ GetVersionTable(); Bugzilla->switch_to_shadow_db(); my $cgi = Bugzilla->cgi; +my $template = Bugzilla->template; # We only want those products that the user has permissions for. my @myproducts; @@ -72,7 +73,7 @@ push( @myproducts, GetSelectableProducts()); if (! defined $cgi->param('product')) { choose_product(@myproducts); - PutFooter(); + $template->put_footer(); } else { my $product = $cgi->param('product'); @@ -93,11 +94,11 @@ if (! defined $cgi->param('product')) { print $cgi->header(-Content_Disposition=>'inline; filename=bugzilla_report.html'); - PutHeader("Bug Charts"); + $template->put_header("Bug Charts"); show_chart($product); - PutFooter(); + $template->put_footer(); } @@ -119,7 +120,7 @@ sub choose_product { || ThrowCodeError("chart_file_open_fail", {filename => "$dir/$datafile"}); print $cgi->header(); - PutHeader("Bug Charts"); + $template->put_header("Bug Charts"); print < -- cgit v1.2.3-24-g4f1b