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:
Diffstat (limited to 'plugins/DevicesDetection/Columns/DeviceModel.php')
-rw-r--r--plugins/DevicesDetection/Columns/DeviceModel.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/DevicesDetection/Columns/DeviceModel.php b/plugins/DevicesDetection/Columns/DeviceModel.php
index 5f74686795..4ac962f0e1 100644
--- a/plugins/DevicesDetection/Columns/DeviceModel.php
+++ b/plugins/DevicesDetection/Columns/DeviceModel.php
@@ -8,7 +8,6 @@
*/
namespace Piwik\Plugins\DevicesDetection\Columns;
-use Piwik\Piwik;
use Piwik\Tracker\Request;
use Piwik\Tracker\Visitor;
use Piwik\Tracker\Action;
@@ -17,11 +16,9 @@ class DeviceModel extends Base
{
protected $columnName = 'config_device_model';
protected $columnType = 'VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL';
-
- public function getName()
- {
- return Piwik::translate('DevicesDetection_DeviceModel');
- }
+ protected $type = self::TYPE_TEXT;
+ protected $nameSingular = 'DevicesDetection_DeviceModel';
+ protected $namePlural = 'DevicesDetection_DeviceModels';
/**
* @param Request $request