mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed the immediate issue where setup fails.
This is a temporary fix falling back to original behavior of the HttpContextAccessor.
This commit is contained in:
@@ -10,9 +10,9 @@ namespace Orchard.Mvc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public HttpContextBase Current() {
|
public HttpContextBase Current() {
|
||||||
HttpContextBase httpContextBase;
|
// TODO: HttpContextBase is not registred in the "shell" lifetime scope, so resolving it will cause an exception.
|
||||||
_context.TryResolve(out httpContextBase);
|
|
||||||
return httpContextBase;
|
return HttpContext.Current != null ? new HttpContextWrapper(HttpContext.Current) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user