diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-05-28 15:48:37 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-05-28 15:48:37 +0300 |
commit | 19aa64c611d6eedd595aba149668dbec7fe46ac8 (patch) | |
tree | 74fde36a144f1ac5dfc7ae0e130ff63eb79e9dcf /plugins/SitesManager/Controller.php | |
parent | 52334289601b9d6db18daae55cfb6687f584885e (diff) |
fix tracking code on "No data is recorded yet" screen does not reflect whitelabel setting (#14494)
fix dev-1641
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 02205709f0..418657100a 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\SitesManager; use Exception; +use Piwik\API\Request; use Piwik\API\ResponseBuilder; use Piwik\Common; use Piwik\Exception\UnexpectedWebsiteFoundException; @@ -142,7 +143,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin 'idSite' => $this->idSite, 'trackingHelp' => $this->renderTemplateAs('_displayJavascriptCode', array( 'displaySiteName' => Common::unsanitizeInputValue($this->site->getName()), - 'jsTag' => $javascriptGenerator->generate($this->idSite, $piwikUrl), + 'jsTag' => Request::processRequest('SitesManager.getJavascriptTag', array('idSite' => $this->idSite, 'piwikUrl' => $piwikUrl)), 'idSite' => $this->idSite, 'piwikUrl' => $piwikUrl, ), $viewType = 'basic'), |