diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-30 06:22:03 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-30 06:22:03 +0400 |
commit | 241cd5c015c46945140be70c7daec15e166de29c (patch) | |
tree | 6c7740e8e5dffaa4006b9208324a1952bac49469 /plugins/VisitTime | |
parent | 7b3d0025c861bff8d9230faafae5d6ffff8f912c (diff) |
- fixing recently introduced sorting issue, refactoring, cleaning up the generic filters concept by removing the automatic sorting of data
- fixing issue when executing unit tests would invalidate tmp/cache/tracker files
- fixed edge case issue when calling several apis from one http request, and requesting recursive output, it was failing in some random cases
- adding a unit test that calls all callable api methods and check for non empty output
-
Diffstat (limited to 'plugins/VisitTime')
-rw-r--r-- | plugins/VisitTime/API.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/VisitTime/API.php b/plugins/VisitTime/API.php index 96f88a7c2b..a948bb7fa6 100644 --- a/plugins/VisitTime/API.php +++ b/plugins/VisitTime/API.php @@ -30,14 +30,11 @@ class Piwik_VisitTime_API protected function getDataTable($name, $idSite, $period, $date ) { Piwik::checkUserHasViewAccess( $idSite ); - $archive = Piwik_Archive::build($idSite, $period, $date ); $dataTable = $archive->getDataTable($name); - $dataTable->queueFilter('Piwik_DataTable_Filter_Sort', array('label', 'asc', true)); + $filter = new Piwik_DataTable_Filter_Sort($dataTable, 'label', 'asc', true); $dataTable->queueFilter('Piwik_DataTable_Filter_ColumnCallbackReplace', array('label', 'Piwik_getTimeLabel')); $dataTable->queueFilter('Piwik_DataTable_Filter_ReplaceColumnNames'); - - return $dataTable; } |