From 42f9f52f36fc34583c4b3473006e0b1005b8ce90 Mon Sep 17 00:00:00 2001 From: Thomas Steur <thomas.steur@gmail.com> Date: Tue, 28 Jul 2015 14:58:17 +0000 Subject: [PATCH] this should fix current time and time frame is not visible in real time map when displayed on a page --- plugins/UserCountryMap/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- GitLab