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/API.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/API.php')
-rw-r--r-- | plugins/Contents/API.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/Contents/API.php b/plugins/Contents/API.php index 15cd14179e..ef4bdaf781 100644 --- a/plugins/Contents/API.php +++ b/plugins/Contents/API.php @@ -21,21 +21,20 @@ use Piwik\Piwik; */ class API extends \Piwik\Plugin\API { - public function getContentNames($idSite, $period, $date, $segment = false, $idSubtable = false, $secondaryDimension = false) + public function getContentNames($idSite, $period, $date, $segment = false, $idSubtable = false) { - return $this->getDataTable(__FUNCTION__, $idSite, $period, $date, $segment, false, $idSubtable, $secondaryDimension); + return $this->getDataTable(__FUNCTION__, $idSite, $period, $date, $segment, false, $idSubtable); } - public function getContentPieces($idSite, $period, $date, $segment = false, $idSubtable = false, $secondaryDimension = false) + public function getContentPieces($idSite, $period, $date, $segment = false, $idSubtable = false) { - return $this->getDataTable(__FUNCTION__, $idSite, $period, $date, $segment, false, $idSubtable, $secondaryDimension); + return $this->getDataTable(__FUNCTION__, $idSite, $period, $date, $segment, false, $idSubtable); } - private function getDataTable($name, $idSite, $period, $date, $segment, $expanded, $idSubtable, $secondaryDimension) + private function getDataTable($name, $idSite, $period, $date, $segment, $expanded, $idSubtable) { Piwik::checkUserHasViewAccess($idSite); - Dimensions::checkSecondaryDimension($name, $secondaryDimension); - $recordName = Dimensions::getRecordNameForAction($name, $secondaryDimension); + $recordName = Dimensions::getRecordNameForAction($name); $dataTable = Archive::getDataTableFromArchive($recordName, $idSite, $period, $date, $segment, $expanded, $idSubtable); $this->filterDataTable($dataTable); return $dataTable; |