summaryrefslogtreecommitdiff
path: root/src/PluginLoader.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/PluginLoader.php')
-rw-r--r--src/PluginLoader.php2
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();
}
}