diff options
Diffstat (limited to 'src/PluginLoader.php')
-rw-r--r-- | src/PluginLoader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PluginLoader.php b/src/PluginLoader.php index c8da5fd..b2ac61d 100644 --- a/src/PluginLoader.php +++ b/src/PluginLoader.php @@ -22,7 +22,7 @@ class PluginLoader $pluginDirectories = $utilities->scandir($pluginsDirectoryPath); foreach ($pluginDirectories as $directory) { - $pluginClass = 'FlatFileForms\\Plugins\\' . $directory . '\\Plugin'; + $pluginClass = 'FlatFileForms\\Plugins\\' . basename($directory) . '\\Plugin'; $plugin = new $pluginClass(); } } |