diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-04-03 09:41:53 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-04-03 09:41:53 +0400 |
commit | 3412d1bdc71e9d5f3eed2c22df3cc4e2913af629 (patch) | |
tree | 7916751e658eef18ce8cb99e121c0f3cc1c0f935 /plugins/Referers/API.php | |
parent | 81c7a6b063622e46b7e941e02bdd1419f3f59e81 (diff) |
- changing ways of applying filters to a datatable, now $table->filter('Piwik_DataTable_Filter_Sort', array ('nb_visits', 'desc'));
- refs #640 now accurately reporting nb_uniq_visitors in all reports
- adding tests
Diffstat (limited to 'plugins/Referers/API.php')
-rw-r--r-- | plugins/Referers/API.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Referers/API.php b/plugins/Referers/API.php index 78635c0e57..0142498a39 100644 --- a/plugins/Referers/API.php +++ b/plugins/Referers/API.php @@ -44,7 +44,7 @@ class Piwik_Referers_API { $dataTable = $archive->getDataTable($name, $idSubtable); } - $filter = new Piwik_DataTable_Filter_Sort($dataTable, Piwik_Archive::INDEX_NB_VISITS, 'desc', $naturalSort = false, $expanded); + $dataTable->filter('Piwik_DataTable_Filter_Sort', array(Piwik_Archive::INDEX_NB_VISITS, 'desc', $naturalSort = false, $expanded)); $dataTable->queueFilter('Piwik_DataTable_Filter_ReplaceColumnNames', array($expanded)); $dataTable->queueFilter('Piwik_DataTable_Filter_ReplaceSummaryRowLabel'); return $dataTable; |