Removed tracking

This commit is contained in:
Graham Campbell
2015-08-01 17:07:06 +01:00
parent 2425682381
commit fb127fb861
36 changed files with 2 additions and 607 deletions

View File

@@ -35,18 +35,12 @@ class HomeController extends AbstractController
$today = Date::now();
$startDate = Date::now();
segment_page('Status Page');
// Check if we have another starting date
if (Binput::has('start_date')) {
try {
// If date provided is valid
$oldDate = Date::createFromFormat('Y-m-d', Binput::get('start_date'));
segment_track('Status Page', [
'start_date' => $oldDate->format('Y-m-d'),
]);
// If trying to get a future date fallback to today
if ($today->gt($oldDate)) {
$startDate = $oldDate;