From d542bdae7f916e555492c3b6930ea49ca31e85a9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 7 Feb 2017 12:20:49 +0100 Subject: [statistics_reporting] Send filename to browser when downloading statistics --- modules-available/statistics_reporting/page.inc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules-available/statistics_reporting/page.inc.php') diff --git a/modules-available/statistics_reporting/page.inc.php b/modules-available/statistics_reporting/page.inc.php index 9d19f95a..05a26c41 100644 --- a/modules-available/statistics_reporting/page.inc.php +++ b/modules-available/statistics_reporting/page.inc.php @@ -150,6 +150,7 @@ class Page_Statistics_Reporting extends Page } $res = $this->fetchData($flags); // TODO: Filter unwanted columns + Header('Content-Disposition: attachment; filename=' . 'statistics-' . date('Y.m.d-H.i.s') . '.' . $format); switch ($format) { case 'json': Header('Content-Type: application/json; charset=utf-8'); -- cgit v1.2.3-55-g7522