diff options
Diffstat (limited to 'plugins/DevicesDetection/API.php')
-rw-r--r-- | plugins/DevicesDetection/API.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/DevicesDetection/API.php b/plugins/DevicesDetection/API.php index 01d783fb71..3117122c96 100644 --- a/plugins/DevicesDetection/API.php +++ b/plugins/DevicesDetection/API.php @@ -10,6 +10,7 @@ * @package Piwik_DevicesDetection */ use Piwik\Archive; +use Piwik\Metrics; use Piwik\Piwik; /** @@ -45,7 +46,7 @@ class Piwik_DevicesDetection_API Piwik::checkUserHasViewAccess($idSite); $archive = Archive::build($idSite, $period, $date, $segment); $dataTable = $archive->getDataTable($name); - $dataTable->filter('Sort', array(Piwik_Metrics::INDEX_NB_VISITS)); + $dataTable->filter('Sort', array(Metrics::INDEX_NB_VISITS)); $dataTable->queueFilter('ReplaceColumnNames'); $dataTable->queueFilter('ReplaceSummaryRowLabel'); return $dataTable; |