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:
Diffstat (limited to 'plugins/Contents/Archiver.php')
-rw-r--r--plugins/Contents/Archiver.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/Contents/Archiver.php b/plugins/Contents/Archiver.php
index c1175fc8b6..c5888b29a8 100644
--- a/plugins/Contents/Archiver.php
+++ b/plugins/Contents/Archiver.php
@@ -249,7 +249,7 @@ class Archiver extends \Piwik\Plugin\Archiver
$mainLabel = $row[$mainDimension];
$dataArray->sumMetricsImpressions($mainLabel, $row);
- $this->rememberMetadataForRow($row, $mainLabel, $mainDimension);
+ $this->rememberMetadataForRow($row, $mainLabel);
$subDimension = $dimensions[1];
$subLabel = $row[$subDimension];
@@ -283,16 +283,10 @@ class Archiver extends \Piwik\Plugin\Archiver
}
}
- private function rememberMetadataForRow($row, $mainLabel, $mainDimension)
+ private function rememberMetadataForRow($row, $mainLabel)
{
$this->metadata[$mainLabel] = array();
- if ($mainDimension === 'contentPiece') {
- $this->metadata[$mainLabel]['contentName'] = $row['contentName'];
- } elseif ($mainDimension === 'contentName') {
- $this->metadata[$mainLabel]['contentPiece'] = $row['contentPiece'];
- }
-
$target = $row['contentTarget'];
if (empty($target)) {
$target = Archiver::CONTENT_TARGET_NOT_SET;