Merge remote-tracking branch 'origin/6.2.0' into 7.0.0-member-editor-wip

Conflicts:
	src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadContent.cs
This commit is contained in:
Shannon
2013-09-30 13:52:01 +10:00
14 changed files with 452 additions and 131 deletions

View File

@@ -28,11 +28,13 @@ namespace Umbraco.Web.Routing
/// <param name="pcr">The content request.</param>
public PublishedContentRequestEngine(PublishedContentRequest pcr)
{
if (pcr == null) throw new ArgumentException("pcr is null.");
_pcr = pcr;
_routingContext = pcr.RoutingContext;
var umbracoContext = _routingContext.UmbracoContext;
if (_routingContext == null) throw new ArgumentException("pcr.RoutingContext is null.");
var umbracoContext = _routingContext.UmbracoContext;
if (umbracoContext == null) throw new ArgumentException("pcr.RoutingContext.UmbracoContext is null.");
if (umbracoContext.RoutingContext != _routingContext) throw new ArgumentException("RoutingContext confusion.");
// no! not set yet.