aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGervase Markham <gerv@gerv.net>2013-01-02 17:09:36 +0000
committerGervase Markham <gerv@mozilla.org>2013-01-02 17:09:36 +0000
commit21b50cba4e08e723f8c2d8e8b5800d0a13e2c180 (patch)
tree504bae35d3f49fbbc951567fe07068294a949393 /report.cgi
parentBug 817486: fix _sync_fulltext to avoid always updating bugs_fulltext.short_desc (diff)
downloadbugzilla-21b50cba4e08e723f8c2d8e8b5800d0a13e2c180.tar.gz
bugzilla-21b50cba4e08e723f8c2d8e8b5800d0a13e2c180.tar.bz2
bugzilla-21b50cba4e08e723f8c2d8e8b5800d0a13e2c180.zip
Bug 413851 - add CSV output option to request lists. r=LpSolit.
Diffstat (limited to 'report.cgi')
-rwxr-xr-xreport.cgi7
1 files changed, 2 insertions, 5 deletions
diff --git a/report.cgi b/report.cgi
index e70dcf4b2..69aadddbd 100755
--- a/report.cgi
+++ b/report.cgi
@@ -309,11 +309,8 @@ my $format = $template->get_format("reports/report", $formatparam,
# set debug=1 to always get an HTML content-type, and view the error.
$format->{'ctype'} = "text/html" if $cgi->param('debug');
-my @time = localtime(time());
-my $date = sprintf "%04d-%02d-%02d", 1900+$time[5],$time[4]+1,$time[3];
-my $filename = "report-$date.$format->{extension}";
-print $cgi->header(-type => $format->{'ctype'},
- -content_disposition => "inline; filename=$filename");
+$cgi->set_dated_content_disp("inline", "report", $format->{extension});
+print $cgi->header($format->{'ctype'});
# Problems with this CGI are often due to malformed data. Setting debug=1
# prints out both data structures.