diff --git a/core/Plugin/Menu.php b/core/Plugin/Menu.php index e354728821c7d259a7dea145fa5cc486e01e79ee..4d08402d88ff6f35cd4a67fccc39239f16de5acc 100644 --- a/core/Plugin/Menu.php +++ b/core/Plugin/Menu.php @@ -30,6 +30,11 @@ use Piwik\Plugins\UsersManager\UserPreferences; */ class Menu { + public function __construct() + { + // Constructor kept for BC (because called in implementations) + } + private function getModule() { $className = get_class($this); diff --git a/core/Plugin/Widgets.php b/core/Plugin/Widgets.php index 5a0cad6fde1f5131b40b5e9cec9d80f626655f3b..2c86fe045f746c858265b328233f4e71a7813081 100644 --- a/core/Plugin/Widgets.php +++ b/core/Plugin/Widgets.php @@ -25,6 +25,11 @@ class Widgets protected $category = ''; protected $widgets = array(); + public function __construct() + { + // Constructor kept for BC (because called in implementations) + } + /** * @ignore */