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
path: root/core
diff options
context:
space:
mode:
authorAlexander Prinzhorn <alexander@prinzhorn.it>2022-06-27 12:28:08 +0300
committerGitHub <noreply@github.com>2022-06-27 12:28:08 +0300
commit4753debbb8ae9cb5666101c4f7d50c0059674194 (patch)
tree17ec240228abc67085a9f198d6bd8ed56e775c58 /core
parent57afc4fa1b7e30dcfd699e9cc9756163b8b89de2 (diff)
Update ReportsProvider.php (#19414)
Copying this from the docs caused > Unmatched '}' and fixing it caused > Call to undefined method Piwik\Plugins\API\Reports\Get::getCategory() and logging `getCategoryId()` shows that `Actions` is not correct either. But using `General_Actions` doesn't remove any menus either, even though `unset` is called. I feel like the first person using these APIs (refs #19389)
Diffstat (limited to 'core')
-rw-r--r--core/Plugin/ReportsProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Plugin/ReportsProvider.php b/core/Plugin/ReportsProvider.php
index 8f05137c56..f2fabf7f57 100644
--- a/core/Plugin/ReportsProvider.php
+++ b/core/Plugin/ReportsProvider.php
@@ -153,7 +153,7 @@ class ReportsProvider
* public function filterReports(&$reports)
* {
* foreach ($reports as $index => $report) {
- * if ($report->getCategory() === 'Actions') {}
+ * if ($report->getCategoryId() === 'General_Actions') {
* unset($reports[$index]); // remove all reports having this action
* }
* }