diff options
author | diosmosis <benaka@piwik.pro> | 2015-09-03 00:12:24 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-09-03 01:42:51 +0300 |
commit | 173259c446a6446936f3cfdea4735124a0d346b7 (patch) | |
tree | 4aa7a8f80605955ddfc31c10dab46ff4d59bc629 /plugins/CustomVariables | |
parent | 76adbdc804d8ab9e2c7e938bf28b7ba0ff4481b7 (diff) |
Refactor API.getSegmentsMetadata and Plugin\Segment so segments are all defined through Plugin\Segment class in dimensions & make sure AutoSuggestAPITest data providers do not use database.
Diffstat (limited to 'plugins/CustomVariables')
-rw-r--r-- | plugins/CustomVariables/Model.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CustomVariables/Model.php b/plugins/CustomVariables/Model.php index d9a0623b40..9d98a352fa 100644 --- a/plugins/CustomVariables/Model.php +++ b/plugins/CustomVariables/Model.php @@ -18,6 +18,7 @@ class Model const SCOPE_PAGE = 'log_link_visit_action'; const SCOPE_VISIT = 'log_visit'; const SCOPE_CONVERSION = 'log_conversion'; + const DEFAULT_CUSTOM_VAR_COUNT = 5; private $scope = null; @@ -159,7 +160,7 @@ class Model $model = new Model($scope); try { - $maxCustomVars = 5; + $maxCustomVars = self::DEFAULT_CUSTOM_VAR_COUNT; $customVarsToAdd = $maxCustomVars - $model->getCurrentNumCustomVars(); for ($index = 0; $index < $customVarsToAdd; $index++) { |