diff --git a/classes/popularity.php b/classes/popularity.php index 996c8743..3deef309 100644 --- a/classes/popularity.php +++ b/classes/popularity.php @@ -38,7 +38,7 @@ class Popularity { $this->config = self::getGrav()['config']; - $this->data_path = self::getGrav()['locator']->findResource('log://') . 'popularity'; + $this->data_path = self::$grav['locator']->findResource('log://popularity', true, true); $this->daily_file = $this->data_path.'/'.self::DAILY_FILE; $this->monthly_file = $this->data_path.'/'.self::MONTHLY_FILE; $this->totals_file = $this->data_path.'/'.self::TOTALS_FILE;