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:
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/WidgetsList.php
parent6682c8f47aed5331b6c9fb60b64f306b27cd0905 (diff)
add report to widgetslist or menu only if enabled, should fix some tests
Diffstat (limited to 'core/WidgetsList.php')
-rw-r--r--core/WidgetsList.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/WidgetsList.php b/core/WidgetsList.php
index 9d1f13abfa..420f5f76b6 100644
--- a/core/WidgetsList.php
+++ b/core/WidgetsList.php
@@ -85,7 +85,9 @@ class WidgetsList extends Singleton
$widgetsList = self::getInstance();
foreach (Report::getAllReports() as $report) {
- $report->configureWidget($widgetsList);
+ if ($report->isEnabled()) {
+ $report->configureWidget($widgetsList);
+ }
}
foreach ($widgets as $widget) {