diff options
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 5eb1ecf3ed..f77844af9e 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -34,26 +34,12 @@ class Controller extends \Piwik\Plugin\ControllerAdmin return $this->renderTemplate('index'); } - - public function getMeasurableTypeSettings() + + public function globalSettings() { - $idSite = Common::getRequestVar('idSite', 0, 'int'); - $idType = Common::getRequestVar('idType', '', 'string'); - - if ($idSite >= 1) { - Piwik::checkUserHasAdminAccess($idSite); - } else if ($idSite === 0) { - Piwik::checkUserHasSomeAdminAccess(); - } else { - throw new Exception('Invalid idSite parameter. IdSite has to be zero or higher'); - } - - $view = new View('@SitesManager/measurable_type_settings'); - -// $propSettings = new MeasurableSettings($idSite, $idType); - $view->settings = array(); + Piwik::checkUserHasSuperUserAccess(); - return $view->render(); + return $this->renderTemplate('globalSettings'); } public function getGlobalSettings() |