diff options
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r-- | plugins/DBStats/DBStats.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php index 770e00f0ed..955c0b6812 100644 --- a/plugins/DBStats/DBStats.php +++ b/plugins/DBStats/DBStats.php @@ -10,6 +10,7 @@ */ use Piwik\Piwik; use Piwik\Date; +use Piwik\ScheduledTask; use Piwik\Plugin; /** @@ -45,12 +46,12 @@ class Piwik_DBStats extends Plugin */ public function getScheduledTasks(&$tasks) { - $cacheDataByArchiveNameReportsTask = new Piwik_ScheduledTask( + $cacheDataByArchiveNameReportsTask = new ScheduledTask( $this, 'cacheDataByArchiveNameReports', null, new Piwik_ScheduledTime_Weekly(), - Piwik_ScheduledTask::LOWEST_PRIORITY + ScheduledTask::LOWEST_PRIORITY ); $tasks[] = $cacheDataByArchiveNameReportsTask; } |