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-07-23 11:52:15 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-23 11:52:15 +0400
commit5104d94f3b2250f766b9c520e2da8da9b4cab2e9 (patch)
tree5f30daf7bc14373fb1bbd0504ce11a771dafc02f /plugins/DBStats/DBStats.php
parentae4b1f4e38077b174e4df5b7d4513d63fe026a24 (diff)
Refs #4059 Work in progress: Conversion to use Namespaces of dozen more classes
Removed many Piwik_ functions, in Piwik 2 it is best practise to use the methods calls instead Todo: finish converting core/ classes + convert plugins/ classes to use \Piwik\Plugin namespace + fix build + Merge master
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r--plugins/DBStats/DBStats.php5
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;
}