diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-28 13:55:14 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-28 13:55:14 +0400 |
commit | f9219dff1bcb5b21bccc56c5b09b5de68cdc3a2b (patch) | |
tree | 583fd99247b75643d8c51e8f8dc25a21100706f8 /plugins/Contents/Archiver.php | |
parent | 10ecff50c3e25cab6501dbc73a1c64131e21db7e (diff) |
refs #4996 I learned the secondary dimension is not needed in my case. Makes it simpler and now the correct label is displayed in a subtable. I should not copy/paste code that I do not understand :)
Diffstat (limited to 'plugins/Contents/Archiver.php')
-rw-r--r-- | plugins/Contents/Archiver.php | 10 |
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; |