summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting/hooks/cron.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-04-27 13:46:42 +0200
committerSimon Rettberg2017-04-27 13:46:42 +0200
commit8666590dd1184970bf8c93415e49f8f4be43ea5b (patch)
treee9c0f1ba79b3400e98c6249daf61f8f519105f29 /modules-available/statistics_reporting/hooks/cron.inc.php
parent[locationinfo] Clean up translations (diff)
parentRelax anti-caching headers a bit (diff)
downloadslx-admin-8666590dd1184970bf8c93415e49f8f4be43ea5b.tar.gz
slx-admin-8666590dd1184970bf8c93415e49f8f4be43ea5b.tar.xz
slx-admin-8666590dd1184970bf8c93415e49f8f4be43ea5b.zip
Merge branch 'master' into location-info-panel
Diffstat (limited to 'modules-available/statistics_reporting/hooks/cron.inc.php')
-rw-r--r--modules-available/statistics_reporting/hooks/cron.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/statistics_reporting/hooks/cron.inc.php b/modules-available/statistics_reporting/hooks/cron.inc.php
index afb18a23..14597f7d 100644
--- a/modules-available/statistics_reporting/hooks/cron.inc.php
+++ b/modules-available/statistics_reporting/hooks/cron.inc.php
@@ -7,10 +7,9 @@ if (RemoteReport::isReportingEnabled()) {
while ($nextReporting <= time()) {
RemoteReport::writeNextReportingTimestamp();
- $from = strtotime("-7 days", $nextReporting);
$to = $nextReporting;
- $statisticsReport = json_encode(RemoteReport::generateReport($from, $to));
+ $statisticsReport = json_encode(RemoteReport::generateReport($to));
$params = array("action" => "statistics", "data" => $statisticsReport);