Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-11-11 13:10:40 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-11 13:10:40 +0400
commite0e83ef063827840e876642088e01e0e583f2adf (patch)
treeb8d45e16f2cb8345eea718c15494762deaddb007 /plugins/DBStats/DBStats.php
parent8cc4127127f2a8f9e95642470cac2e870e1f0d1a (diff)
Simplifying API for creating scheduled tasks, ScheduledTime objects now created via factory eg. ScheduledTime::factory('daily');
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r--plugins/DBStats/DBStats.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php
index f32d07bce6..d82fd8e728 100644
--- a/plugins/DBStats/DBStats.php
+++ b/plugins/DBStats/DBStats.php
@@ -20,6 +20,7 @@ use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Pie;
use Piwik\ScheduledTask;
use Piwik\ScheduledTime\Weekly;
+use Piwik\ScheduledTime;
/**
*
@@ -60,7 +61,7 @@ class DBStats extends \Piwik\Plugin
$this,
'cacheDataByArchiveNameReports',
null,
- new Weekly(),
+ ScheduledTime::factory('weekly'),
ScheduledTask::LOWEST_PRIORITY
);
$tasks[] = $cacheDataByArchiveNameReportsTask;