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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-10-09 07:16:23 +0400
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-10-10 11:47:03 +0400
commitee52d5dadf0d65a1facad8220e5fe83cd89c2945 (patch)
tree8aefba7f8aad4757b7b54605138abb1733d3e5e9 /plugins
parent5f6abcfd84c44f6b5ffe35e01a7b73a74969b1bc (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.php6
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');