Web.Routing - begin sanitizing PublishedContentRequest

This commit is contained in:
Stephan
2013-01-16 15:01:43 -01:00
parent 2251f39fcf
commit c6c522da04
16 changed files with 142 additions and 125 deletions

View File

@@ -30,7 +30,7 @@ namespace Umbraco.Web.Routing
var docreq = UmbracoContext.Current.PublishedContentRequest;
var reason = "Cannot render the page at url '{0}'.";
if (!docreq.HasNode)
if (!docreq.HasPublishedContent)
reason = "No umbraco document matches the url '{0}'.";
else if (!docreq.HasTemplate)
reason = "No template exists to render the document at url '{0}'.";