--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-04-12 17:51:50 -07:00
parent a86d6f8542
commit 5eec0fcbab

View File

@@ -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);
}