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:
authordiosmosis <benaka@piwik.pro>2015-09-03 00:12:24 +0300
committerdiosmosis <benaka@piwik.pro>2015-09-03 01:42:51 +0300
commit173259c446a6446936f3cfdea4735124a0d346b7 (patch)
tree4aa7a8f80605955ddfc31c10dab46ff4d59bc629 /plugins/CustomVariables
parent76adbdc804d8ab9e2c7e938bf28b7ba0ff4481b7 (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.php3
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++) {