diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-11 07:04:53 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-11 07:04:53 +0400 |
commit | 4f2e01d20a8027cf545613d883e4ef22267c1cc1 (patch) | |
tree | f065435c1eed3716d834f30886ceb95140214116 /core/WidgetsList.php | |
parent | fca3bf825184cf0ddc3b9edcac0d90c95802afbf (diff) |
starting to refactor reports into classes, also refactored some more dimensions which is still not 100% working and needs more work
Diffstat (limited to 'core/WidgetsList.php')
-rw-r--r-- | core/WidgetsList.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/WidgetsList.php b/core/WidgetsList.php index 095c54cfd7..4051d8948a 100644 --- a/core/WidgetsList.php +++ b/core/WidgetsList.php @@ -9,6 +9,7 @@ namespace Piwik; use Piwik\Plugin\Manager as PluginManager; +use Piwik\Plugin\Report; /** * Manages the global list of reports that can be displayed as dashboard widgets. @@ -83,6 +84,10 @@ class WidgetsList extends Singleton $widgets = PluginManager::getInstance()->findComponents('Widgets', 'Piwik\\Plugin\\Widgets'); $widgetsList = self::getInstance(); + foreach (Report::getAllReports() as $report) { + $report->configureWidget($widgetsList); + } + foreach ($widgets as $widget) { $widget->configure($widgetsList); } |