diff options
author | Peter Zhang <peter@innocraft.com> | 2022-01-26 03:14:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 03:14:48 +0300 |
commit | a0705d8fd53f3818c517fa386c0e377196937942 (patch) | |
tree | cf19a84c1fbe2eb24c76ff4c02eb8f3eba323260 /plugins/VisitsSummary | |
parent | fed704ef22c36ff7e941a713faf5c542c6048b0e (diff) |
add date, period params into common function (#18653)
* Update Common.php
add array check in common request
* Update Common.php
test
* add common period and date function
add common period and date function
* Update core/Piwik.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update core/Piwik.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* update function
update function
* Update core/Piwik.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update Controller.php
update isset check
Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'plugins/VisitsSummary')
-rw-r--r-- | plugins/VisitsSummary/Reports/Get.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/VisitsSummary/Reports/Get.php b/plugins/VisitsSummary/Reports/Get.php index 8ffcac2d9f..3c5f703ec1 100644 --- a/plugins/VisitsSummary/Reports/Get.php +++ b/plugins/VisitsSummary/Reports/Get.php @@ -49,7 +49,7 @@ class Get extends \Piwik\Plugin\Report 'max_actions' ); - $period = Common::getRequestVar('period', 'day'); + $period = Piwik::getPeriod('day'); if (SettingsPiwik::isUniqueVisitorsEnabled($period)) { $this->metrics = array_merge(['nb_uniq_visitors'], $this->metrics); } |