Skip to content

Commit

Permalink
Fixes #253, culture formatting affecting string formatting of priorit…
Browse files Browse the repository at this point in the history
…y element in sitemap.xml endpoint.
  • Loading branch information
NightOwl888 committed Dec 2, 2013
1 parent a7cbc4e commit 82775d0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
using System.Xml;
using System.Xml.Linq;
using System.IO;
using System.IO.Compression;
using System.IO.Compression;
using System.Globalization;
using MvcSiteMapProvider.Loader;

namespace MvcSiteMapProvider.Web.Mvc
Expand Down Expand Up @@ -261,7 +262,7 @@ protected virtual IEnumerable<XElement> GenerateUrlElements(ControllerContext co
}
if (siteMapNode.UpdatePriority != UpdatePriority.Undefined)
{
urlElement.Add(new XElement(Ns + "priority", string.Format("{0:0.0}", ((double)siteMapNode.UpdatePriority / 100))));
urlElement.Add(new XElement(Ns + "priority", string.Format(CultureInfo.InvariantCulture, "{0:0.0}", ((double)siteMapNode.UpdatePriority / 100))));
}

// Return
Expand Down

0 comments on commit 82775d0

Please sign in to comment.