diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-20 07:39:39 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-20 07:39:39 +0400 |
commit | c7edd733b426d102177b1b03c5f1d059e0bcf624 (patch) | |
tree | 4a675da718680acf11712aa281f090464cf3d522 /core/Menu | |
parent | 6682c8f47aed5331b6c9fb60b64f306b27cd0905 (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.php | 4 |
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) { |