summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-02-07 12:20:49 +0100
committerSimon Rettberg2017-02-07 12:20:49 +0100
commitd542bdae7f916e555492c3b6930ea49ca31e85a9 (patch)
treec3df556d6b5c051d3ab6ff609b7294053dde9b73 /modules-available/statistics_reporting/page.inc.php
parent[statistics_reporting] fixed location link in client table (diff)
downloadslx-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/page.inc.php')
-rw-r--r--modules-available/statistics_reporting/page.inc.php1
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');