Skip to content

Commit

Permalink
Fix inconsistent usage of segment idSites (matomo-org#15746)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur authored Apr 1, 2020
1 parent b227520 commit e89ebdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/ArchiveProcessor/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected function prepareAllPluginsArchive($visits, $visitsConverted)
protected function doesRequestedPluginIncludeVisitsSummary()
{
$processAllReportsIncludingVisitsSummary =
Rules::shouldProcessReportsAllPlugins($this->params->getIdSites(), $this->params->getSegment(), $this->params->getPeriod()->getLabel());
Rules::shouldProcessReportsAllPlugins(array($this->params->getSite()->getId()), $this->params->getSegment(), $this->params->getPeriod()->getLabel());
$doesRequestedPluginIncludeVisitsSummary = $processAllReportsIncludingVisitsSummary
|| $this->params->getRequestedPlugin() == 'VisitsSummary';
return $doesRequestedPluginIncludeVisitsSummary;
Expand Down
2 changes: 1 addition & 1 deletion core/ArchiveProcessor/PluginsArchiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ protected function shouldProcessReportsForPlugin($pluginName)
}

if (Rules::shouldProcessReportsAllPlugins(
$this->params->getIdSites(),
array($this->params->getSite()->getId()),
$this->params->getSegment(),
$this->params->getPeriod()->getLabel())) {
return true;
Expand Down

0 comments on commit e89ebdf

Please sign in to comment.