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-04-12 11:15:37 +0400
committermattab <matthieu.aubry@gmail.com>2014-04-12 11:15:37 +0400
commitd4ad73273823973553230e61efc76efa45393d46 (patch)
tree7c5582831e9f962539634e5fb56580dae5287aaf /core/FrontController.php
parent6964244454571746eb40c246d46f384ee7ba1de8 (diff)
Small refactor -> move logic to Plugin\Manager so we can better refactor it later on
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/FrontController.php b/core/FrontController.php
index bc6115e392..63e8a9d324 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -279,10 +279,7 @@ class FrontController extends Singleton
$this->handleProfiler();
$this->handleSSLRedirection();
- $pluginsManager = \Piwik\Plugin\Manager::getInstance();
- $pluginsToLoad = Config::getInstance()->Plugins['Plugins'];
-
- $pluginsManager->loadPlugins($pluginsToLoad);
+ Plugin\Manager::getInstance()->loadActivatedPlugins();
if ($exceptionToThrow) {
throw $exceptionToThrow;
@@ -361,7 +358,7 @@ class FrontController extends Singleton
SettingsServer::raiseMemoryLimitIfNecessary();
Translate::reloadLanguage();
- $pluginsManager->postLoadPlugins();
+ \Piwik\Plugin\Manager::getInstance()->postLoadPlugins();
/**
* Triggered after the platform is initialized and after the user has been authenticated, but