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:
authormattpiwik <matthieu.aubry@gmail.com>2009-04-03 09:41:53 +0400
committermattpiwik <matthieu.aubry@gmail.com>2009-04-03 09:41:53 +0400
commit4c02aee97947b8e267f442816a66b9099913358d (patch)
tree7916751e658eef18ce8cb99e121c0f3cc1c0f935 /plugins/VisitorInterest/API.php
parent79100d981642d14fb5313a58ca52a788b4996721 (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/VisitorInterest/API.php')
-rw-r--r--plugins/VisitorInterest/API.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/VisitorInterest/API.php b/plugins/VisitorInterest/API.php
index 9afab8ce1a..f12a704121 100644
--- a/plugins/VisitorInterest/API.php
+++ b/plugins/VisitorInterest/API.php
@@ -32,7 +32,7 @@ class Piwik_VisitorInterest_API
Piwik::checkUserHasViewAccess( $idSite );
$archive = Piwik_Archive::build($idSite, $period, $date );
$dataTable = $archive->getDataTable($name);
- $filter = new Piwik_DataTable_Filter_Sort($dataTable, Piwik_Archive::INDEX_NB_VISITS);
+ $dataTable->filter('Piwik_DataTable_Filter_Sort',array(Piwik_Archive::INDEX_NB_VISITS));
$dataTable->queueFilter('Piwik_DataTable_Filter_ReplaceColumnNames');
$dataTable->queueFilter('Piwik_DataTable_Filter_Sort', array('label', 'asc', true));
return $dataTable;