mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
bug fix
--HG-- branch : dev
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Orchard.Commands {
|
||||
// Workaround autofac integration: module registration is currently run twice...
|
||||
//if (matches.Count() == 1) {
|
||||
// var match = matches.Single();
|
||||
if (matches.Count() == 2) {
|
||||
if (matches.Count() == 1 || matches.Count() == 2) {
|
||||
var match = matches.First();
|
||||
match.CommandHandlerFactory().Execute(match.Context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user