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:
authorStefan Giehl <stefan@matomo.org>2022-02-01 11:08:31 +0300
committerGitHub <noreply@github.com>2022-02-01 11:08:31 +0300
commit4fea439e6530f6779f3de845e2913ce508a83760 (patch)
tree7b80e54e5f24f8dec406700cad475fe541c573b5 /plugins/CoreUpdater/CoreUpdater.php
parentce2782827667e4cbf5162cfc7a84bfe657de96d0 (diff)
Prevent possible error when action is provided as array (#18706)
* Prevent possible error when action is provided as array * Use Piwik::getModule / Piwik::getAction in a couple more places * fix test
Diffstat (limited to 'plugins/CoreUpdater/CoreUpdater.php')
-rw-r--r--plugins/CoreUpdater/CoreUpdater.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreUpdater/CoreUpdater.php b/plugins/CoreUpdater/CoreUpdater.php
index 79821d287c..af95ae1c09 100644
--- a/plugins/CoreUpdater/CoreUpdater.php
+++ b/plugins/CoreUpdater/CoreUpdater.php
@@ -41,8 +41,8 @@ class CoreUpdater extends \Piwik\Plugin
return;
}
- $module = Common::getRequestVar('module', '', 'string');
- $action = Common::getRequestVar('action', '', 'string');
+ $module = Piwik::getModule();
+ $action = Piwik::getAction();
if ($module == 'CoreUpdater'
// Proxy module is used to redirect users to piwik.org, should still work when Piwik must be updated