mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge branch 'dev' of https://github.com/OrchardCMS/Orchard into autoroute-patterns-localization
This commit is contained in:
@@ -10,9 +10,9 @@ namespace Orchard.Mvc {
|
||||
}
|
||||
|
||||
public HttpContextBase Current() {
|
||||
HttpContextBase httpContextBase;
|
||||
_context.TryResolve(out httpContextBase);
|
||||
return httpContextBase;
|
||||
// TODO: HttpContextBase is not registred in the "shell" lifetime scope, so resolving it will cause an exception.
|
||||
|
||||
return HttpContext.Current != null ? new HttpContextWrapper(HttpContext.Current) : null;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user