Web.Routing - clear convoluted .RoutingContext.UmbracoContext.RoutingContext

This commit is contained in:
Stephan
2013-03-19 17:38:18 -01:00
parent 0db781b59f
commit 4c3d2c10ac

View File

@@ -58,7 +58,7 @@ namespace Umbraco.Web.Routing
// first ask the cache for a node
// return '0' if in preview mode
var nodeId = !docreq.RoutingContext.UmbracoContext.InPreviewMode
? docreq.RoutingContext.UmbracoContext.RoutingContext.RoutesCache.GetNodeId(route)
? docreq.RoutingContext.RoutesCache.GetNodeId(route)
: 0;
// if a node was found, get it by id and ensure it exists