summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-07-22 14:13:36 +0200
committerlpsolit%gmail.com <>2005-07-22 14:13:36 +0200
commite7d2b86c2765c3a8e853526683ceacdb260a7996 (patch)
tree90fc70fd199e7bfc5ae5656ceadafbe6c8afe4d7 /reports.cgi
parentd0303ab3ecb54eef2ed1b5e55839eada16748416 (diff)
downloadbugzilla-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-xreports.cgi9
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>