mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Fix loading of plugins in the plugin directory
This commit is contained in:
@@ -86,7 +86,7 @@ namespace BTCPayServer.Plugins
|
||||
// Load from the plugins folder
|
||||
foreach (var directory in Directory.GetDirectories(pluginsFolder))
|
||||
{
|
||||
var pluginIdentifier = Path.GetDirectoryName(directory);
|
||||
var pluginIdentifier = Path.GetFileName(directory);
|
||||
var pluginFilePath = Path.Combine(directory, pluginIdentifier + ".dll");
|
||||
if (!File.Exists(pluginFilePath))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user