Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/API')
-rw-r--r--plugins/API/Controller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php
index e7ef5efd36..2d107182cb 100644
--- a/plugins/API/Controller.php
+++ b/plugins/API/Controller.php
@@ -49,7 +49,8 @@ class Controller extends \Piwik\Plugin\Controller
public function listAllMethods()
{
$ApiDocumentation = new DocumentationGenerator();
- return $ApiDocumentation->getAllInterfaceString($outputExampleUrls = true, $prefixUrls = Common::getRequestVar('prefixUrl', ''));
+ $prefixUrls = Common::getRequestVar('prefixUrl', 'http://demo.piwik.org/', 'string');
+ return $ApiDocumentation->getApiDocumentationAsStringForDeveloperReference($outputExampleUrls = true, $prefixUrls);
}
public function listAllAPI()
@@ -59,7 +60,7 @@ class Controller extends \Piwik\Plugin\Controller
$ApiDocumentation = new DocumentationGenerator();
$view->countLoadedAPI = Proxy::getInstance()->getCountRegisteredClasses();
- $view->list_api_methods_with_links = $ApiDocumentation->getAllInterfaceString();
+ $view->list_api_methods_with_links = $ApiDocumentation->getApiDocumentationAsString();
return $view->render();
}