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-25 04:27:04 +0300
committerdiosmosis <benaka@piwik.pro>2015-09-25 05:59:26 +0300
commitde2ee7a1a0478cdd9904f698e70b40eec465fe3f (patch)
tree8c8cb599aa806e27ed3d2d685c4a5091bd791780 /plugins/SitesManager/SitesManager.php
parentbaa6da86266c7c44bc2d65821c7ffe042c2f4716 (diff)
Remove depedency to SitesManager plugin in core ArchiveInvalidator service by moving logic to new request processor.
ArchiveInvalidator used to update site creation time. The reasoning was, if we tracked data in the past that was before the site's creation time, the site creation time should be updated, so it will be displayed in the UI. The tracking should trigger archive invalidation which should eventually trigger an update to the site creation time. This is incorrectly mixing concerns. Now the new request processor will make this change at the moment old data is tracked. New test included.
Diffstat (limited to 'plugins/SitesManager/SitesManager.php')
-rw-r--r--plugins/SitesManager/SitesManager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php
index cd37b6e63b..200f268a8a 100644
--- a/plugins/SitesManager/SitesManager.php
+++ b/plugins/SitesManager/SitesManager.php
@@ -126,6 +126,7 @@ class SitesManager extends \Piwik\Plugin
$array['sitesearch_keyword_parameters'] = $this->getTrackerSearchKeywordParameters($website);
$array['sitesearch_category_parameters'] = $this->getTrackerSearchCategoryParameters($website);
$array['timezone'] = $this->getTimezoneFromWebsite($website);
+ $array['ts_created'] = $website['ts_created'];
}
/**