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:
authorPeter Zhang <peter@innocraft.com>2022-02-14 14:01:16 +0300
committerGitHub <noreply@github.com>2022-02-14 14:01:16 +0300
commit65383e52a22cb5d1d5e1497f646a27d21c780034 (patch)
treead6c239d5c103678d153c40c09676175ba2b0288 /plugins/VisitsSummary
parent48020c27e137c7e9ce9db6c20794cdfd2ddefa8b (diff)
[Hotfix]add date, period params into common function (#18686)
* 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 * Update core/Plugin/Controller.php Co-authored-by: Stefan Giehl <stefan@matomo.org> * Update core/Piwik.php Co-authored-by: Stefan Giehl <stefan@matomo.org> * update isset check update isset check * Update Piwik.php update phpdocs * Update core/Visualization/Sparkline.php Co-authored-by: Stefan Giehl <stefan@matomo.org> * Update Controller.php pass param * Update core/Plugin/Controller.php Co-authored-by: Stefan Giehl <stefan@matomo.org> Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'plugins/VisitsSummary')
-rw-r--r--plugins/VisitsSummary/Reports/Get.php2
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);
}