Fixes 28234

[TFS Changeset #73592]
This commit is contained in:
hartvig
2010-07-22 21:49:37 +00:00
parent 7ca2563216
commit f219858098

View File

@@ -1053,9 +1053,11 @@ order by umbracoNode.level, umbracoNode.sortOrder";
* will check for this and call PersistXmlToFile() if necessary */
if (HttpContext.Current != null)
{
if (!HttpContext.Current.Items.Contains(PersistenceFlagContextKey))
HttpContext.Current.Items.Add(PersistenceFlagContextKey, null);
HttpContext.Current.Items[PersistenceFlagContextKey] = true;
HttpContext.Current.Application.Lock();
if (HttpContext.Current.Application[PersistenceFlagContextKey] != null)
HttpContext.Current.Application.Add(PersistenceFlagContextKey, null);
HttpContext.Current.Application[PersistenceFlagContextKey] = true;
HttpContext.Current.Application.UnLock();
}
else
{
@@ -1079,7 +1081,7 @@ order by umbracoNode.level, umbracoNode.sortOrder";
{
get
{
var val = HttpContext.Current.Items.Contains(PersistenceFlagContextKey);
var val = HttpContext.Current.Application[PersistenceFlagContextKey] != null;
if (val != null)
{
return bool.Parse(val.ToString());