diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-03-21 09:24:37 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-03-21 09:24:37 +0400 |
commit | 53261af03b171ef7fef712b9242d73b4e6058bb6 (patch) | |
tree | 8e8218b8cdd3ad6ea22b6a598fc3a1047a08301b /core/Console.php | |
parent | 3ed3aa37bc3cf8299444e8378391b33e1e090005 (diff) |
Let other reuse the initPlugins()
Diffstat (limited to 'core/Console.php')
-rw-r--r-- | core/Console.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Console.php b/core/Console.php index af49044132..3db5a83da7 100644 --- a/core/Console.php +++ b/core/Console.php @@ -19,7 +19,7 @@ class Console $this->initPiwikHost(); $this->initConfig(); try { - $this->initPlugins(); + self::initPlugins(); } catch(\Exception $e) { // Piwik not installed yet, no config file? } @@ -103,7 +103,7 @@ class Console } } - protected function initPlugins() + public static function initPlugins() { $pluginsToLoad = Config::getInstance()->Plugins['Plugins']; $pluginsManager = Plugin\Manager::getInstance(); |