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/Menu
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-06-20 07:39:39 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-20 07:39:39 +0400
commitc7edd733b426d102177b1b03c5f1d059e0bcf624 (patch)
tree4a675da718680acf11712aa281f090464cf3d522 /core/Menu
parent6682c8f47aed5331b6c9fb60b64f306b27cd0905 (diff)
add report to widgetslist or menu only if enabled, should fix some tests
Diffstat (limited to 'core/Menu')
-rw-r--r--core/Menu/MenuReporting.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Menu/MenuReporting.php b/core/Menu/MenuReporting.php
index d704134510..c085e7b41d 100644
--- a/core/Menu/MenuReporting.php
+++ b/core/Menu/MenuReporting.php
@@ -69,7 +69,9 @@ class MenuReporting extends MenuAbstract
Piwik::postEvent('Menu.Reporting.addItems', array());
foreach (Report::getAllReports() as $report) {
- $report->configureReportingMenu($this);
+ if ($report->isEnabled()) {
+ $report->configureReportingMenu($this);
+ }
}
foreach ($this->getAvailableMenus() as $menu) {