diff options
author | lpsolit%gmail.com <> | 2005-07-22 14:13:36 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-07-22 14:13:36 +0200 |
commit | e7d2b86c2765c3a8e853526683ceacdb260a7996 (patch) | |
tree | 90fc70fd199e7bfc5ae5656ceadafbe6c8afe4d7 /reports.cgi | |
parent | d0303ab3ecb54eef2ed1b5e55839eada16748416 (diff) | |
download | bugzilla-e7d2b86c2765c3a8e853526683ceacdb260a7996.tar.gz bugzilla-e7d2b86c2765c3a8e853526683ceacdb260a7996.tar.xz |
Bug 301507: Move PutHeader and PutFooter into Template.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=justdave
Diffstat (limited to 'reports.cgi')
-rwxr-xr-x | reports.cgi | 9 |
1 files changed, 5 insertions, 4 deletions
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 <<FIN; <center> |