From 9fbcd24bf90b1095bd52ce1de7d04e42d3ff95d0 Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Wed, 21 Nov 2018 23:39:01 +0000 Subject: [PATCH] Fixed problems with Plugins class. Adding plugins now no longer get overridden. --- src/FuzeWorks/Plugins.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FuzeWorks/Plugins.php b/src/FuzeWorks/Plugins.php index a664ba7..9dee75c 100644 --- a/src/FuzeWorks/Plugins.php +++ b/src/FuzeWorks/Plugins.php @@ -110,7 +110,6 @@ class Plugins public function loadHeadersFromPluginPaths() { // Cycle through all pluginPaths - $this->headers = array(); foreach ($this->pluginPaths as $pluginPath) { // If directory does not exist, skip it @@ -165,7 +164,7 @@ class Plugins protected function loadHeader(iPluginHeader $header): bool { // Fetch the name - $pluginName = $header->getName(); + $pluginName = ucfirst($header->getName()); // Check if the plugin is disabled if (in_array($pluginName, $this->cfg->disabled_plugins))