diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-10-03 22:52:29 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-10-03 22:52:29 +0300 |
commit | 902bd940c87fd9f0d1730dc2b9560b862b8c8e9a (patch) | |
tree | ea03fcb6f0a79f8e6f06b2814651d55b91f306ea /plugins/Login/Controller.php | |
parent | 67eaa2c0381933d5e38180a2159044893447acca (diff) |
Improve usage of requested site in plugin Controllers (#13526)
Diffstat (limited to 'plugins/Login/Controller.php')
-rw-r--r-- | plugins/Login/Controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php index 3e7eac57a6..a69a7b9ce8 100644 --- a/plugins/Login/Controller.php +++ b/plugins/Login/Controller.php @@ -165,8 +165,8 @@ class Controller extends \Piwik\Plugin\Controller $currentUrl = 'index.php'; - if (($idSite = Common::getRequestVar('idSite', false, 'int')) !== false) { - $currentUrl .= '?idSite=' . $idSite; + if ($this->idSite) { + $currentUrl .= '?idSite=' . $this->idSite; } $urlToRedirect = Common::getRequestVar('url', $currentUrl, 'string'); |