diff options
author | sgiehl <stefan@piwik.org> | 2014-04-03 16:45:54 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2014-04-03 16:45:54 +0400 |
commit | e380ce2246173ab0dda603dc2eb515711ea2e34b (patch) | |
tree | 93e92fc7ed566053cda375974de74cdba4744360 /plugins/API | |
parent | 7a98becbec6bf32038549c879b4f6cfda3a7b77d (diff) | |
parent | 644b63fd6035fd8d0b113e8ce71629af0378e738 (diff) |
Merge branch 'master' into DeviceDetectorIntegration
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/Controller.php | 5 |
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' |