diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-11-18 07:02:19 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-11-18 07:02:19 +0400 |
commit | 9060f0180cb935efd1925942d3a8ce1cf309459a (patch) | |
tree | b474d8758f3b45063e4bd430f5daa028b369c879 /plugins/SitesManager/Controller.php | |
parent | 4658d92891093982d979e7ec8343ee4ccc510a38 (diff) |
getting rid of the fetch parameter
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 91d8688f91..f5350ad717 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -84,7 +84,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $view->showAddSite = (boolean)Common::getRequestVar('showaddsite', false); $this->setBasicVariablesView($view); - echo $view->render(); + return $view->render(); } /** @@ -120,7 +120,8 @@ class Controller extends \Piwik\Plugin\ControllerAdmin } catch (Exception $e) { $toReturn = $response->getResponseException($e); } - echo $toReturn; + + return $toReturn; } /** @@ -138,7 +139,8 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $site = new Site($idSite); $view->displaySiteName = $site->getName(); $view->jsTag = $jsTag; - echo $view->render(); + + return $view->render(); } /** @@ -150,7 +152,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $filename = 'PiwikTracker.php'; header('Content-type: text/php'); header('Content-Disposition: attachment; filename="' . $filename . '"'); - echo file_get_contents($path . $filename); + return file_get_contents($path . $filename); } /** @@ -168,7 +170,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin } $view->piwikUrlRequest = $url; $view->calledExternally = true; - echo $view->render(); + return $view->render(); } function getSitesForAutocompleter() |