From 91bf71eab26be6ed462ac67a875f19130f55d4f9 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 27 Feb 2015 16:24:33 -0700 Subject: [PATCH] implemented manually PR #3 --- classes/popularity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;