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:
authorsgiehl <stefan@piwik.org>2014-04-03 16:45:54 +0400
committersgiehl <stefan@piwik.org>2014-04-03 16:45:54 +0400
commite380ce2246173ab0dda603dc2eb515711ea2e34b (patch)
tree93e92fc7ed566053cda375974de74cdba4744360 /plugins/API
parent7a98becbec6bf32038549c879b4f6cfda3a7b77d (diff)
parent644b63fd6035fd8d0b113e8ce71629af0378e738 (diff)
Merge branch 'master' into DeviceDetectorIntegration
Diffstat (limited to 'plugins/API')
-rw-r--r--plugins/API/Controller.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php
index b80eb577a3..349cdacbfb 100644
--- a/plugins/API/Controller.php
+++ b/plugins/API/Controller.php
@@ -62,7 +62,10 @@ class Controller extends \Piwik\Plugin\Controller
$segment['type'] = 'dimension';
}
- $onlyDisplay = array('customVariableName1', 'customVariableName2', 'customVariableValue1', 'customVariableValue2', 'customVariablePageName1', 'customVariablePageValue1');
+ $onlyDisplay = array('customVariableName1', 'customVariableName2',
+ 'customVariableValue1', 'customVariableValue2',
+ 'customVariablePageName1', 'customVariablePageValue1');
+
$customVariableWillBeDisplayed = in_array($segment['segment'], $onlyDisplay);
// Don't display more than 4 custom variables name/value rows
if ($segment['category'] == 'Custom Variables'