Don't check log comment length if it is null.. helped with a broken recycle bin

not deleting content because sometimes the title of the content would be null
This commit is contained in:
Sebastiaan Janssen
2012-12-17 09:25:55 -01:00
parent db14868324
commit 5c0d9785e0
2 changed files with 6 additions and 2 deletions

View File

@@ -201,8 +201,13 @@ namespace Umbraco.Web.Routing
// time to read the alternate template alias, from querystring, form, cookie or server vars.
// it will be cleared as soon as .PublishedContent change, because then it's not the
// expected content anymore and the alternate template does not apply.
if (_umbracoContext.HttpContext.Items["altTemplate"] != null)
_publishedContentRequest.AlternateTemplateAlias = _umbracoContext.HttpContext.Items["altTemplate"].ToString();
_publishedContentRequest.AlternateTemplateAlias = _umbracoContext.HttpContext.Request["altTemplate"];
_umbracoContext.HttpContext.Trace.Write(string.Format("test {0}", _publishedContentRequest.AlternateTemplateAlias));
// handle "not found", follow internal redirects, validate access, template
// because these might loop, we have to have some sort of infinite loop detection
int i = 0, j = 0;