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/API/Controller.php | |
parent | 4658d92891093982d979e7ec8343ee4ccc510a38 (diff) |
getting rid of the fetch parameter
Diffstat (limited to 'plugins/API/Controller.php')
-rw-r--r-- | plugins/API/Controller.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php index 8e8842858d..0ef5f3fa17 100644 --- a/plugins/API/Controller.php +++ b/plugins/API/Controller.php @@ -31,13 +31,13 @@ class Controller extends \Piwik\Plugin\Controller $_GET['filter_limit'] = Config::getInstance()->General['API_datatable_default_limit']; } $request = new Request('token_auth=' . Common::getRequestVar('token_auth', 'anonymous', 'string')); - echo $request->process(); + return $request->process(); } public function listAllMethods() { $ApiDocumentation = new DocumentationGenerator(); - echo $ApiDocumentation->getAllInterfaceString($outputExampleUrls = true, $prefixUrls = Common::getRequestVar('prefixUrl', '')); + return $ApiDocumentation->getAllInterfaceString($outputExampleUrls = true, $prefixUrls = Common::getRequestVar('prefixUrl', '')); } public function listAllAPI() @@ -48,7 +48,7 @@ class Controller extends \Piwik\Plugin\Controller $ApiDocumentation = new DocumentationGenerator(); $view->countLoadedAPI = Proxy::getInstance()->getCountRegisteredClasses(); $view->list_api_methods_with_links = $ApiDocumentation->getAllInterfaceString(); - echo $view->render(); + return $view->render(); } public function listSegments() @@ -113,7 +113,7 @@ class Controller extends \Piwik\Plugin\Controller } } - echo " + return " <strong>Dimensions</strong> <table> $tableDimensions |