Skip to content

Commit

Permalink
Fix page views being tracked from administration panel
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Oct 12, 2019
1 parent b944e5b commit 52e5654
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions formwork/Core/Formwork.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ public function run()
$this->cache->save($this->cacheKey, $page);
}
}
}

if ($this->option('statistics.enabled')) {
$statistics = new Statistics();
$statistics->trackVisit();
if ($this->option('statistics.enabled')) {
$statistics = new Statistics();
$statistics->trackVisit();
}
}
}

Expand Down

0 comments on commit 52e5654

Please sign in to comment.