diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-07-28 17:58:17 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-10-06 18:25:24 +0300 |
commit | 42f9f52f36fc34583c4b3473006e0b1005b8ce90 (patch) | |
tree | 6df6a1278f71bcf50e8ac9819903bad1cb5b91a9 /plugins/UserCountryMap | |
parent | ccaf2c6b9665f238a61c9753f0b0e8c173557c77 (diff) |
this should fix current time and time frame is not visible in real time map when displayed on a page
Diffstat (limited to 'plugins/UserCountryMap')
-rw-r--r-- | plugins/UserCountryMap/Controller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserCountryMap/Controller.php b/plugins/UserCountryMap/Controller.php index c1c1b44e16..a93a9622f5 100644 --- a/plugins/UserCountryMap/Controller.php +++ b/plugins/UserCountryMap/Controller.php @@ -155,7 +155,7 @@ class Controller extends \Piwik\Plugin\Controller $token_auth = Piwik::getCurrentUserTokenAuth(); $view = new View('@UserCountryMap/realtimeMap'); - $view->mapIsStandaloneNotWidget = $standalone; + $view->mapIsStandaloneNotWidget = !(bool) Common::getRequestVar('widget', $standalone, 'int'); $view->metrics = $this->getMetrics($idSite, 'range', self::REAL_TIME_WINDOW, $token_auth); $view->defaultMetric = 'nb_visits'; |