diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-05-17 13:52:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-17 13:52:38 +0300 |
commit | 7215ff1419f6d8b4a97b8883c51974577a45af0d (patch) | |
tree | 2eec11f2b121e4b41903968d98e27b9ca3c80e40 /plugins/SitesManager/Controller.php | |
parent | f8792441937fab9da4862a7387fc5aa13e04cd1d (diff) |
Let controllers specify what type a view to be rendered is (#14309)
* Let controllers specify what type a view to be rendered is, so it is not always assumed based on controller type.
* Check the view type.
* Do not modify @api methods.
* tweak comment
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 71a7c84e97..02205709f0 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -137,15 +137,15 @@ class Controller extends \Piwik\Plugin\ControllerAdmin Piwik::checkUserHasViewAccess($this->idSite); } - return $this->renderTemplate('siteWithoutData', array( + return $this->renderTemplateAs('siteWithoutData', array( 'siteName' => $this->site->getName(), 'idSite' => $this->idSite, - 'trackingHelp' => $this->renderTemplate('_displayJavascriptCode', array( + 'trackingHelp' => $this->renderTemplateAs('_displayJavascriptCode', array( 'displaySiteName' => Common::unsanitizeInputValue($this->site->getName()), 'jsTag' => $javascriptGenerator->generate($this->idSite, $piwikUrl), 'idSite' => $this->idSite, 'piwikUrl' => $piwikUrl, - )), - )); + ), $viewType = 'basic'), + ), $viewType = 'basic'); } } |