applies patch for #U4-1890

This commit is contained in:
Shannon Deminick
2013-03-12 00:10:59 +04:00
parent 63192f3a65
commit c8b8b28e9b
4 changed files with 111 additions and 27 deletions

View File

@@ -50,23 +50,7 @@ namespace Umbraco.Web
legacyRequestInitializer.InitializeRequest();
// create the UmbracoContext singleton, one per request, and assign
var umbracoContext = new UmbracoContext(
httpContext,
ApplicationContext.Current,
RoutesCacheResolver.Current.RoutesCache);
UmbracoContext.Current = umbracoContext;
// create the nice urls provider
var niceUrls = new NiceUrlProvider(PublishedContentStoreResolver.Current.PublishedContentStore, umbracoContext);
// create the RoutingContext, and assign
var routingContext = new RoutingContext(
umbracoContext,
DocumentLookupsResolver.Current.DocumentLookups,
LastChanceLookupResolver.Current.LastChanceLookup,
PublishedContentStoreResolver.Current.PublishedContentStore,
niceUrls);
umbracoContext.RoutingContext = routingContext;
UmbracoContext.EnsureContext(httpContext, ApplicationContext.Current);
}
/// <summary>