diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-10-09 07:16:23 +0400 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-10-10 11:47:03 +0400 |
commit | ee52d5dadf0d65a1facad8220e5fe83cd89c2945 (patch) | |
tree | 8aefba7f8aad4757b7b54605138abb1733d3e5e9 /plugins | |
parent | 5f6abcfd84c44f6b5ffe35e01a7b73a74969b1bc (diff) |
Fixed a bug in the GenerateReport command
It would only generate a report with the same name of the plugin.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreConsole/Commands/GenerateReport.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CoreConsole/Commands/GenerateReport.php b/plugins/CoreConsole/Commands/GenerateReport.php index 9bf09099ec..7afd139380 100644 --- a/plugins/CoreConsole/Commands/GenerateReport.php +++ b/plugins/CoreConsole/Commands/GenerateReport.php @@ -42,8 +42,7 @@ class GenerateReport extends GeneratePluginBase $apiName = $this->getApiName($reportName); $exampleFolder = PIWIK_INCLUDE_PATH . '/plugins/ExampleReport'; - $replace = array('ExampleReport' => $pluginName, - 'GetExampleReport' => ucfirst($apiName), + $replace = array('GetExampleReport' => ucfirst($apiName), 'getExampleReport' => lcfirst($apiName), 'getApiReport' => lcfirst($apiName), 'ExampleCategory' => $category, @@ -51,7 +50,8 @@ class GenerateReport extends GeneratePluginBase 'ExampleReportDocumentation' => $documentation, '999' => $order, 'new ExitPageUrl()' => $dimension, - 'use Piwik\Plugins\Actions\Columns\ExitPageUrl;' => $dimensionClass + 'use Piwik\Plugins\Actions\Columns\ExitPageUrl;' => $dimensionClass, + 'ExampleReport' => $pluginName, ); $whitelistFiles = array('/Reports', '/Reports/Base.php', '/Reports/GetExampleReport.php'); |