diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-03-16 08:03:39 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-03-18 03:15:08 +0300 |
commit | 0bbbdc851366a1b5cd7179a7de313caa655a6fda (patch) | |
tree | 1fd3d8c8a8369f25f4b45ff7b7b06b731c9f225a /plugins/VisitorInterest/API.php | |
parent | f1894a1aee763f840a6d541aec6db9ca2c05337e (diff) |
Various performance improvements and bugfixes.
Imporves performance for Archiving and Range dates. Makes all kind of
reports faster as well. Fixed bugs in labelFilter, reports total calculation
and more.
Diffstat (limited to 'plugins/VisitorInterest/API.php')
-rw-r--r-- | plugins/VisitorInterest/API.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/VisitorInterest/API.php b/plugins/VisitorInterest/API.php index 33f6d97b58..74f050c33a 100644 --- a/plugins/VisitorInterest/API.php +++ b/plugins/VisitorInterest/API.php @@ -33,7 +33,7 @@ class API extends \Piwik\Plugin\API public function getNumberOfVisitsPerVisitDuration($idSite, $period, $date, $segment = false) { $dataTable = $this->getDataTable(Archiver::TIME_SPENT_RECORD_NAME, $idSite, $period, $date, $segment); - $dataTable->queueFilter('Sort', array('label', 'asc', true)); + $dataTable->queueFilter('Sort', array('label', 'asc', true, false)); $dataTable->queueFilter('BeautifyTimeRangeLabels', array( Piwik::translate('VisitorInterest_BetweenXYSeconds'), Piwik::translate('VisitorInterest_OneMinute'), @@ -44,7 +44,7 @@ class API extends \Piwik\Plugin\API public function getNumberOfVisitsPerPage($idSite, $period, $date, $segment = false) { $dataTable = $this->getDataTable(Archiver::PAGES_VIEWED_RECORD_NAME, $idSite, $period, $date, $segment); - $dataTable->queueFilter('Sort', array('label', 'asc', true)); + $dataTable->queueFilter('Sort', array('label', 'asc', true, false)); $dataTable->queueFilter('BeautifyRangeLabels', array( Piwik::translate('VisitorInterest_OnePage'), Piwik::translate('VisitorInterest_NPages'))); |