Fixed problems with Plugins class. Adding plugins now no longer get overridden.
This commit is contained in:
parent
8bbbcbfc81
commit
9fbcd24bf9
|
@ -110,7 +110,6 @@ class Plugins
|
||||||
public function loadHeadersFromPluginPaths()
|
public function loadHeadersFromPluginPaths()
|
||||||
{
|
{
|
||||||
// Cycle through all pluginPaths
|
// Cycle through all pluginPaths
|
||||||
$this->headers = array();
|
|
||||||
foreach ($this->pluginPaths as $pluginPath) {
|
foreach ($this->pluginPaths as $pluginPath) {
|
||||||
|
|
||||||
// If directory does not exist, skip it
|
// If directory does not exist, skip it
|
||||||
|
@ -165,7 +164,7 @@ class Plugins
|
||||||
protected function loadHeader(iPluginHeader $header): bool
|
protected function loadHeader(iPluginHeader $header): bool
|
||||||
{
|
{
|
||||||
// Fetch the name
|
// Fetch the name
|
||||||
$pluginName = $header->getName();
|
$pluginName = ucfirst($header->getName());
|
||||||
|
|
||||||
// Check if the plugin is disabled
|
// Check if the plugin is disabled
|
||||||
if (in_array($pluginName, $this->cfg->disabled_plugins))
|
if (in_array($pluginName, $this->cfg->disabled_plugins))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user