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:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-03 19:35:50 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-03 19:35:50 +0400
commit71c76ffd4435344024c3a9ef332daab8f908572f (patch)
tree076b4638a76ed936c87deb8dde8bac6eae0eb683 /plugins/Contents/API.php
parent9b1d0b1c50455fc6b7928718d71c052957a00598 (diff)
refs #4996 updated spec to better describe how it will work. While writing this I noticed a few things that need to be changed and that do not work, also many possible new features for V2. Already updated a few things but will need to adjust more things before writing tests
Diffstat (limited to 'plugins/Contents/API.php')
-rw-r--r--plugins/Contents/API.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Contents/API.php b/plugins/Contents/API.php
index ef4bdaf781..95dc283fe1 100644
--- a/plugins/Contents/API.php
+++ b/plugins/Contents/API.php
@@ -49,6 +49,12 @@ class API extends \Piwik\Plugin\API
$dataTable->queueFilter('ReplaceColumnNames');
$dataTable->queueFilter('ReplaceSummaryRowLabel');
+ $dataTable->filter(function (DataTable $table) {
+ $row = $table->getRowFromLabel(Archiver::CONTENT_PIECE_NOT_SET);
+ if ($row) {
+ $row->setColumn('label', Piwik::translate('General_NotDefined', Piwik::translate('Contents_ContentPiece')));
+ }
+ });
// Content interaction rate = interactions / impressions
$dataTable->queueFilter('ColumnCallbackAddColumnPercentage', array('interaction_rate', 'nb_interactions', 'nb_impressions', $precision = 2));