diff options
author | Simon Rettberg | 2017-02-07 12:20:49 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-02-07 12:20:49 +0100 |
commit | d542bdae7f916e555492c3b6930ea49ca31e85a9 (patch) | |
tree | c3df556d6b5c051d3ab6ff609b7294053dde9b73 /modules-available/statistics_reporting | |
parent | [statistics_reporting] fixed location link in client table (diff) | |
download | slx-admin-d542bdae7f916e555492c3b6930ea49ca31e85a9.tar.gz slx-admin-d542bdae7f916e555492c3b6930ea49ca31e85a9.tar.xz slx-admin-d542bdae7f916e555492c3b6930ea49ca31e85a9.zip |
[statistics_reporting] Send filename to browser when downloading statistics
Diffstat (limited to 'modules-available/statistics_reporting')
-rw-r--r-- | modules-available/statistics_reporting/page.inc.php | 1 |
1 files changed, 1 insertions, 0 deletions
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'); |