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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-18 23:52:52 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-18 23:52:52 +0300
commit4e67c4010a8ca6bdef8c68d86b83ba308abe8975 (patch)
treed98bb1bc2a7427023d673b6394b9105d01bdf987
parentc3dbab26ae1c5094fef6f8560756bfbc8bc2bc2e (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.php5
-rw-r--r--core/Plugin/Widgets.php5
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
*/