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:
authorStefan Giehl <stefan@piwik.org>2018-07-03 01:29:55 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-07-03 01:29:55 +0300
commit1f2753aa2af2ae98b7bb5dfc6b15546c705b7bbc (patch)
treef049950445dc8b39834140574442444e72d7c340 /plugins/API
parent072e46d6cafc26d3c39eb7c965bf37bddb914039 (diff)
Only show segments based on log_visit table in GDPR search (#13123)
* Only show segments based on log_visit table in GDPR search * fix typo * cs
Diffstat (limited to 'plugins/API')
-rw-r--r--plugins/API/API.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php
index b00ff6526f..ca2f1d5de3 100644
--- a/plugins/API/API.php
+++ b/plugins/API/API.php
@@ -177,17 +177,17 @@ class API extends \Piwik\Plugin\API
$sites = (is_array($idSites) ? implode('.', $idSites) : (int) $idSites);
$cache = Cache::getTransientCache();
- $cachKey = 'API.getSegmentsMetadata' . $sites . '_' . (int) $_hideImplementationData . '_' . (int) $isNotAnonymous;
- $cachKey = CacheId::pluginAware($cachKey);
+ $cacheKey = 'API.getSegmentsMetadata' . $sites . '_' . (int) $_hideImplementationData . '_' . (int) $isNotAnonymous;
+ $cacheKey = CacheId::pluginAware($cacheKey);
- if ($cache->contains($cachKey)) {
- return $cache->fetch($cachKey);
+ if ($cache->contains($cacheKey)) {
+ return $cache->fetch($cacheKey);
}
$metadata = new SegmentMetadata();
$segments = $metadata->getSegmentsMetadata($idSites, $_hideImplementationData, $isNotAnonymous);
- $cache->save($cachKey, $segments);
+ $cache->save($cacheKey, $segments);
return $segments;
}