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:
authormattab <matthieu.aubry@gmail.com>2014-03-21 09:24:37 +0400
committermattab <matthieu.aubry@gmail.com>2014-03-21 09:24:37 +0400
commit53261af03b171ef7fef712b9242d73b4e6058bb6 (patch)
tree8e8218b8cdd3ad6ea22b6a598fc3a1047a08301b /core/Console.php
parent3ed3aa37bc3cf8299444e8378391b33e1e090005 (diff)
Let other reuse the initPlugins()
Diffstat (limited to 'core/Console.php')
-rw-r--r--core/Console.php4
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();