mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Update HttpContextAccessor.cs
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Orchard.Mvc {
|
||||
if (_wca == null && _lifetimeScope.IsRegistered<IWorkContextAccessor>())
|
||||
_wca = _lifetimeScope.Resolve<IWorkContextAccessor>();
|
||||
|
||||
var workContext = _wca != null ? _wca.GetContext(null) : null;
|
||||
var workContext = _wca != null ? _wca.GetLogicalContext() : null;
|
||||
return workContext != null ? workContext.HttpContext : null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user