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 <benakamoorthi@fastmail.fm>2014-03-26 13:53:54 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-26 13:55:08 +0400
commit6db8deac1e34f07ba6e7a7cd88dddfb464ae5b87 (patch)
tree6c30c9ac8aaafce4f9af4159b1e3e57bf57621f9 /core/Archive.php
parent12d78a18b41e47f6ae4a72519ff7375cebb7dd35 (diff)
Fixes #4878, use pre-piwik 2 data in VisitFrequency API if post-piwik 2 data cannot be found. Commit includes commented out tests for changes.
Diffstat (limited to 'core/Archive.php')
-rw-r--r--core/Archive.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Archive.php b/core/Archive.php
index f9ab809bca..e5884aea70 100644
--- a/core/Archive.php
+++ b/core/Archive.php
@@ -554,7 +554,6 @@ class Archive
// cache id archives for plugins we haven't processed yet
if (!empty($archiveGroups)) {
if (!Rules::isArchivingDisabledFor($this->params->getIdSites(), $this->params->getSegment(), $this->getPeriodLabel())) {
-
$this->cacheArchiveIdsAfterLaunching($archiveGroups, $plugins);
} else {
$this->cacheArchiveIdsWithoutLaunching($plugins);
@@ -769,13 +768,16 @@ class Archive
} // Goal_* metrics are processed by the Goals plugin (HACK)
else if (strpos($report, 'Goal_') === 0) {
$report = 'Goals_Metrics';
+ } else if (strrpos($report, '_returning') === strlen($report) - strlen('_returning')) { // HACK
+ $report = 'VisitFrequency_Metrics';
}
$plugin = substr($report, 0, strpos($report, '_'));
if (empty($plugin)
|| !\Piwik\Plugin\Manager::getInstance()->isPluginActivated($plugin)
) {
- throw new \Exception("Error: The report '$report' was requested but it is not available at this stage. ");
+ throw new \Exception("Error: The report '$report' was requested but it is not available at this stage."
+ . " (Plugin '$plugin' is not activated.)");
}
return $plugin;
}