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:
authormattab <matthieu.aubry@gmail.com>2014-05-02 05:31:49 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-02 05:31:49 +0400
commit77fa82f580764931504a28c91490f66633408c92 (patch)
tree0a330fecd48744f4b824a1f049e981a3197bc33f /plugins/Live/Controller.php
parentffdc6f0dfa908591897c0a15f6d2bd47b7fadc3c (diff)
Fixes #5037 You can now configure periods that are available in the UI and API
; The list of periods that are available in the Piwik calendar ; Example use case: custom date range requests are processed in real time, ; so they may take a few minutes on very high traffic website: you may remove "range" below to disable this period enabled_periods_UI = "day,week,month,year,range" enabled_periods_API = "day,week,month,year,range"
Diffstat (limited to 'plugins/Live/Controller.php')
-rw-r--r--plugins/Live/Controller.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php
index 900010f157..06adb63627 100644
--- a/plugins/Live/Controller.php
+++ b/plugins/Live/Controller.php
@@ -105,7 +105,9 @@ class Controller extends \Piwik\Plugin\Controller
{
// hack, ensure we load today's visits by default
$_GET['date'] = 'today';
+ \Piwik\Period\Factory::checkPeriodIsEnabled('day');
$_GET['period'] = 'day';
+
$view = new View('@Live/getLastVisitsStart');
$view->idSite = $this->idSite;
$api = new Request("method=Live.getLastVisitsDetails&idSite={$this->idSite}&filter_limit=10&format=php&serialize=0&disable_generic_filters=1");