diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-27 01:40:27 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-27 01:40:27 +0300 |
commit | 197d8f7387bd23b2977efa153bb5f6dd23d52fb9 (patch) | |
tree | 748d3cd7672dcaa28c5b177ab199c50c48903f17 /plugins/SitesManager | |
parent | d6d64878b776dc96cf49b7e71f644021e5aa1936 (diff) |
fixes #1090
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r-- | plugins/SitesManager/Controller.php | 2 | ||||
-rw-r--r-- | plugins/SitesManager/templates/DisplayJavascriptCode.tpl | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index ddf93d109b..275e50f50d 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -38,6 +38,8 @@ class Piwik_SitesManager_Controller extends Piwik_Controller $view = Piwik_View::factory('DisplayJavascriptCode'); $this->setGeneralVariablesView($view); $view->menu = Piwik_GetAdminMenu(); + $site = new Piwik_Site($idSite); + $view->displaySiteName = $site->getName(); $view->jsTag = $jsTag; echo $view->render(); } diff --git a/plugins/SitesManager/templates/DisplayJavascriptCode.tpl b/plugins/SitesManager/templates/DisplayJavascriptCode.tpl index 9fa7c7f617..54332e93b8 100644 --- a/plugins/SitesManager/templates/DisplayJavascriptCode.tpl +++ b/plugins/SitesManager/templates/DisplayJavascriptCode.tpl @@ -22,7 +22,7 @@ code { </style> {/literal} -<h2>{$siteName}</h2> +<h2>{$displaySiteName}</h2> <p>{'SitesManager_JsTrackingTagHelp'|translate}:</p> <code>{$jsTag}</code> |