Fix CR
This commit is contained in:
@@ -238,18 +238,18 @@ class PluginRegistry
|
|||||||
$className = $currentPlugin->getClassName();
|
$className = $currentPlugin->getClassName();
|
||||||
/** @var enterprisePlugin $Plugin */
|
/** @var enterprisePlugin $Plugin */
|
||||||
if (class_exists($className)) {
|
if (class_exists($className)) {
|
||||||
$Plugin = new $className(
|
$plugin = new $className(
|
||||||
$currentPlugin->getNamespace(),
|
$currentPlugin->getNamespace(),
|
||||||
$currentPlugin->getFile()
|
$currentPlugin->getFile()
|
||||||
);
|
);
|
||||||
$this->_aPluginDetails[$Namespace]->sFriendlyName = $Plugin->sFriendlyName;
|
$this->_aPluginDetails[$Namespace]->sFriendlyName = $plugin->sFriendlyName;
|
||||||
$this->_aPluginDetails[$Namespace]->sDescription = $Plugin->sDescription;
|
$this->_aPluginDetails[$Namespace]->sDescription = $plugin->sDescription;
|
||||||
} else {
|
} else {
|
||||||
$Plugin = $currentPlugin;
|
$plugin = $currentPlugin;
|
||||||
}
|
}
|
||||||
$this->_aPlugins[$Namespace] = $Plugin;
|
$this->_aPlugins[$Namespace] = $plugin;
|
||||||
if (method_exists($Plugin, 'enable')) {
|
if (method_exists($plugin, 'enable')) {
|
||||||
$Plugin->enable();
|
$plugin->enable();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* 1. register <plugin-dir>/src directory for autoloading
|
* 1. register <plugin-dir>/src directory for autoloading
|
||||||
@@ -266,7 +266,7 @@ class PluginRegistry
|
|||||||
if (array_key_exists($currentPlugin->getNamespace(), $this->_restServiceEnabled)
|
if (array_key_exists($currentPlugin->getNamespace(), $this->_restServiceEnabled)
|
||||||
&& $this->_restServiceEnabled[$currentPlugin->getNamespace()] == true
|
&& $this->_restServiceEnabled[$currentPlugin->getNamespace()] == true
|
||||||
) {
|
) {
|
||||||
$Plugin->registerRestService();
|
$plugin->registerRestService();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user