diff options
author | diosmosis <benaka@piwik.pro> | 2015-08-06 15:41:26 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-08-07 17:15:43 +0300 |
commit | 161ec8593a9f52be9d758569f86ece29f7cca4b2 (patch) | |
tree | bee439b8a8c73046ad2b6f7c7c23a109cf59e762 /plugins/CustomVariables | |
parent | 2f91d3c83a834b0e451d3e58fa246ef0a87740fb (diff) |
Moving request metadata from VisitProperties to Tracker\Request class.
Diffstat (limited to 'plugins/CustomVariables')
-rw-r--r-- | plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php b/plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php index 86e656929b..44e6d59350 100644 --- a/plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php +++ b/plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php @@ -42,12 +42,12 @@ class CustomVariablesRequestProcessor extends RequestProcessor Common::printDebug($visitorCustomVariables); } - $visitProperties->setRequestMetadata('CustomVariables', 'visitCustomVariables', $visitorCustomVariables); + $request->setMetadata('CustomVariables', 'visitCustomVariables', $visitorCustomVariables); } public function onNewVisit(VisitProperties $visitProperties, Request $request) { - $visitCustomVariables = $visitProperties->getRequestMetadata('CustomVariables', 'visitCustomVariables'); + $visitCustomVariables = $request->getMetadata('CustomVariables', 'visitCustomVariables'); if (!empty($visitCustomVariables)) { $visitProperties->setProperties(array_merge($visitProperties->getProperties(), $visitCustomVariables)); @@ -56,7 +56,7 @@ class CustomVariablesRequestProcessor extends RequestProcessor public function onExistingVisit(&$valuesToUpdate, VisitProperties $visitProperties, Request $request) { - $visitCustomVariables = $visitProperties->getRequestMetadata('CustomVariables', 'visitCustomVariables'); + $visitCustomVariables = $request->getMetadata('CustomVariables', 'visitCustomVariables'); if (!empty($visitCustomVariables)) { $valuesToUpdate = array_merge($valuesToUpdate, $visitCustomVariables); |