diff options
Diffstat (limited to 'plugins/DevicesDetection/API.php')
-rw-r--r-- | plugins/DevicesDetection/API.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/DevicesDetection/API.php b/plugins/DevicesDetection/API.php index 69b3f80cdb..3cd5c13e80 100644 --- a/plugins/DevicesDetection/API.php +++ b/plugins/DevicesDetection/API.php @@ -56,7 +56,7 @@ class API extends \Piwik\Plugin\API $mapping = DeviceParserAbstract::getAvailableDeviceTypeNames(); $dataTable->filter('AddSegmentByLabelMapping', array('deviceType', $mapping)); $dataTable->filter('ColumnCallbackAddMetadata', array('label', 'logo', __NAMESPACE__ . '\getDeviceTypeLogo')); - $dataTable->filter('ColumnCallbackReplace', array('label', __NAMESPACE__ . '\getDeviceTypeLabel')); + $dataTable->filter('GroupBy', array('label', __NAMESPACE__ . '\getDeviceTypeLabel')); return $dataTable; } @@ -94,7 +94,7 @@ class API extends \Piwik\Plugin\API public function getBrand($idSite, $period, $date, $segment = false) { $dataTable = $this->getDataTable('DevicesDetection_brands', $idSite, $period, $date, $segment); - $dataTable->filter('ColumnCallbackReplace', array('label', __NAMESPACE__ . '\getDeviceBrandLabel')); + $dataTable->filter('GroupBy', array('label', __NAMESPACE__ . '\getDeviceBrandLabel')); $dataTable->filter('ColumnCallbackAddMetadata', array('label', 'logo', __NAMESPACE__ . '\getBrandLogo')); $dataTable->filter('AddSegmentByLabel', array('deviceBrand')); return $dataTable; @@ -111,7 +111,7 @@ class API extends \Piwik\Plugin\API public function getModel($idSite, $period, $date, $segment = false) { $dataTable = $this->getDataTable('DevicesDetection_models', $idSite, $period, $date, $segment); - $dataTable->filter('ColumnCallbackReplace', array('label', __NAMESPACE__ . '\getModelName')); + $dataTable->filter('GroupBy', array('label', __NAMESPACE__ . '\getModelName')); return $dataTable; } |