From 4e67c4010a8ca6bdef8c68d86b83ba308abe8975 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli <matthieu@mnapoli.fr> Date: Thu, 19 Mar 2015 09:52:52 +1300 Subject: [PATCH] Restore the constructor (empty) that I removed in d3e92fa484 because it can be called from subclasses See https://github.com/piwik/piwik/commit/d3e92fa484956fd1edf853cac83e7d2c7a0f3310#commitcomment-10262413 --- core/Plugin/Menu.php | 5 +++++ core/Plugin/Widgets.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/core/Plugin/Menu.php b/core/Plugin/Menu.php index e354728821..4d08402d88 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 5a0cad6fde..2c86fe045f 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 */ -- GitLab