From 3df046508f58bbfff51c5cad33f42af4e378bea7 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Fri, 13 Jan 2017 16:19:33 +0100 Subject: [statistics_reporting] improved anonymization --- modules-available/statistics_reporting/page.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (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 aa373f54..941bf12f 100644 --- a/modules-available/statistics_reporting/page.inc.php +++ b/modules-available/statistics_reporting/page.inc.php @@ -24,9 +24,7 @@ class Page_Statistics_Reporting extends Page { // timespan you want to see = Days selected * seconds per Day (86400) // default = 14 days - $date = new DateTime(date('Y-m-d 00:00:00')); - $date->sub(new DateInterval('P'.(Request::get('cutoff', 14, 'int') - 1).'D')); - GetData::$from = $date->getTimestamp(); + GetData::$from = strtotime("- ".(Request::get('cutoff', 14, 'int') - 1)." days 00:00:00"); GetData::$to = time(); GetData::$lowerTimeBound = Request::get('lower', 0, 'int'); GetData::$upperTimeBound = Request::get('upper', 24, 'int'); @@ -37,7 +35,6 @@ class Page_Statistics_Reporting extends Page $data['perUser'] = GetData::perUser(); $data['perVM'] = GetData::perVM(); - Render::addTemplate('columnChooser'); Render::addTemplate('_page', $data); } -- cgit v1.2.3-55-g7522