diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2009-04-03 09:41:53 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2009-04-03 09:41:53 +0400 |
commit | 4c02aee97947b8e267f442816a66b9099913358d (patch) | |
tree | 7916751e658eef18ce8cb99e121c0f3cc1c0f935 /plugins/VisitTime/API.php | |
parent | 79100d981642d14fb5313a58ca52a788b4996721 (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
git-svn-id: http://dev.piwik.org/svn/trunk@1046 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/VisitTime/API.php')
-rw-r--r-- | plugins/VisitTime/API.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/VisitTime/API.php b/plugins/VisitTime/API.php index a948bb7fa6..da71767796 100644 --- a/plugins/VisitTime/API.php +++ b/plugins/VisitTime/API.php @@ -32,7 +32,7 @@ class Piwik_VisitTime_API Piwik::checkUserHasViewAccess( $idSite ); $archive = Piwik_Archive::build($idSite, $period, $date ); $dataTable = $archive->getDataTable($name); - $filter = new Piwik_DataTable_Filter_Sort($dataTable, 'label', 'asc', true); + $dataTable->filter('Piwik_DataTable_Filter_Sort', array('label', 'asc', true)); $dataTable->queueFilter('Piwik_DataTable_Filter_ColumnCallbackReplace', array('label', 'Piwik_getTimeLabel')); $dataTable->queueFilter('Piwik_DataTable_Filter_ReplaceColumnNames'); return $dataTable; |