This commit is contained in:
Roly Rudy Gutierrez Pinto
2018-01-24 17:15:38 -04:00
parent 0f561d604e
commit 318b08885c
2 changed files with 3 additions and 0 deletions

View File

@@ -174,6 +174,8 @@ class PluginRegistry
$Plugin = new $className($pluginDetail->getNamespace(), $pluginDetail->getFile());
$this->_aPlugins[$pluginDetail->getNamespace()] = $Plugin;
$iPlugins++;
$Plugin->registerPmFunction();
$this->init();
$Plugin->setup();
}
}

View File

@@ -695,6 +695,7 @@ if (defined( 'DEBUG_SQL_LOG' ) && DEBUG_SQL_LOG) {
//here we are loading all plugins registered
//the singleton has a list of enabled plugins
$oPluginRegistry = PluginRegistry::loadSingleton();
$oPluginRegistry->init();
$attributes = $oPluginRegistry->getAttributes();
Bootstrap::LoadTranslationPlugins( defined( 'SYS_LANG' ) ? SYS_LANG : "en" , $attributes);