Merge with 6.0.6

This commit is contained in:
Shannon Deminick
2013-05-06 15:20:26 -10:00
4 changed files with 6 additions and 2 deletions

View File

@@ -192,6 +192,7 @@ namespace Umbraco.Core
}
}
/// <summary>
/// Imports a XML node from text.
/// </summary>

View File

@@ -794,7 +794,7 @@ namespace umbraco.MacroEngines
{
try
{
XElement e = XElement.Parse(DynamicXml.StripDashesInElementOrAttributeNames(sResult), LoadOptions.None);
XElement e = XElement.Parse(XmlHelper.StripDashesInElementOrAttributeNames(sResult), LoadOptions.None);
if (e != null)
{
//check that the document element is not one of the disallowed elements

View File

@@ -8,6 +8,7 @@ using System.Xml.XPath;
using System.Collections;
using System.IO;
using System.Web;
using Umbraco.Core;
namespace umbraco.MacroEngines
{
@@ -381,9 +382,10 @@ namespace umbraco.MacroEngines
return test(this) ? new HtmlString(valueIfTrue) : new HtmlString(valueIfFalse);
}
[Obsolete("Use XmlHelper.StripDashesInElementOrAttributeNames instead")]
public static string StripDashesInElementOrAttributeNames(string xml)
{
return Umbraco.Core.Dynamics.DynamicXml.StripDashesInElementOrAttributeNames(xml);
return XmlHelper.StripDashesInElementOrAttributeNames(xml);
}
}
}

View File

@@ -479,5 +479,6 @@ namespace umbraco.MacroEngines
propertyExists = false;
return null;
}
}
}