Skip to content
Extraits de code Groupes Projets
Valider ee52d5da rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

Fixed a bug in the GenerateReport command

It would only generate a report with the same name of the plugin.
parent 5f6abcfd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter