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-01-26 03:14:48 +0300
committerGitHub <noreply@github.com>2022-01-26 03:14:48 +0300
commita0705d8fd53f3818c517fa386c0e377196937942 (patch)
treecf19a84c1fbe2eb24c76ff4c02eb8f3eba323260 /plugins/MultiSites
parentfed704ef22c36ff7e941a713faf5c542c6048b0e (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/MultiSites')
-rw-r--r--plugins/MultiSites/Controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MultiSites/Controller.php b/plugins/MultiSites/Controller.php
index 86792958f6..ae19acc3a1 100644
--- a/plugins/MultiSites/Controller.php
+++ b/plugins/MultiSites/Controller.php
@@ -74,8 +74,8 @@ class Controller extends \Piwik\Plugin\Controller
{
Piwik::checkUserHasSomeViewAccess();
- $date = Common::getRequestVar('date', 'today');
- $period = Common::getRequestVar('period', 'day');
+ $date = Piwik::getDate('today');
+ $period = Piwik::getPeriod('day');
$view = new View("@MultiSites/getSitesInfo");