This commit is contained in:
Lombiq
2015-01-25 22:34:42 +01:00
committed by Zoltán Lehóczky
parent 22ee57582d
commit a6c467106f

View File

@@ -294,7 +294,7 @@ namespace Orchard.Environment {
var context = _shellContextFactory.CreateShellContext(settings);
// Sctivate and register modified context.
// Activate and register modified context.
// Forcing enumeration with ToArray() so a lazy execution isn't causing issues by accessing the disposed shell context.
_shellContexts = _shellContexts.Where(shell => shell.Settings.Name != settings.Name).Union(new[] { context }).ToArray();