diff options
Diffstat (limited to 'core/API/DocumentationGenerator.php')
-rw-r--r-- | core/API/DocumentationGenerator.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/API/DocumentationGenerator.php b/core/API/DocumentationGenerator.php index 990d232163..e0116b7dfa 100644 --- a/core/API/DocumentationGenerator.php +++ b/core/API/DocumentationGenerator.php @@ -10,6 +10,7 @@ namespace Piwik\API; use Exception; use Piwik\Common; +use Piwik\Container\StaticContainer; use Piwik\Piwik; use Piwik\Url; use ReflectionClass; @@ -283,6 +284,15 @@ class DocumentationGenerator $aParameters['disable_generic_filters'] = false; $aParameters['expanded'] = false; $aParameters['idDimenson'] = false; + $aParameters['format_metrics'] = false; + + $entityNames = StaticContainer::get('entities.idNames'); + foreach ($entityNames as $entityName) { + if (isset($aParameters[$entityName])) { + continue; + } + $aParameters[$entityName] = false; + } $moduleName = Proxy::getInstance()->getModuleNameFromClassName($class); $aParameters = array_merge(array('module' => 'API', 'method' => $moduleName . '.' . $methodName), $aParameters); |