diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-18 23:52:52 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-18 23:52:52 +0300 |
commit | 4e67c4010a8ca6bdef8c68d86b83ba308abe8975 (patch) | |
tree | d98bb1bc2a7427023d673b6394b9105d01bdf987 | |
parent | c3dbab26ae1c5094fef6f8560756bfbc8bc2bc2e (diff) |
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
-rw-r--r-- | core/Plugin/Menu.php | 5 | ||||
-rw-r--r-- | core/Plugin/Widgets.php | 5 |
2 files changed, 10 insertions, 0 deletions
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 */ |