mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Update HttpContextAccessor.cs
This commit is contained in:
parent
17a74705ce
commit
3e900affb2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user