U4-4127 Turkish culture prevents Macros embedded
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -160,7 +161,7 @@ namespace Umbraco.Web
|
||||
{
|
||||
//TODO: We are doing at ToLower here because for some insane reason the UpdateMacroModel method of macro.cs
|
||||
// looks for a lower case match. WTF. the whole macro concept needs to be rewritten.
|
||||
macroProps.Add(i.Key.ToLower(), i.Value);
|
||||
macroProps.Add(i.Key.ToLowerInvariant(), i.Value);
|
||||
}
|
||||
var macroControl = m.renderMacro(macroProps,
|
||||
UmbracoContext.Current.PublishedContentRequest.UmbracoPage.Elements,
|
||||
|
||||
@@ -815,9 +815,9 @@ namespace umbraco
|
||||
{
|
||||
foreach (MacroPropertyModel mp in Model.Properties)
|
||||
{
|
||||
if (attributes.ContainsKey(mp.Key.ToLower()))
|
||||
if (attributes.ContainsKey(mp.Key.ToLowerInvariant()))
|
||||
{
|
||||
mp.Value = attributes[mp.Key.ToLower()].ToString();
|
||||
mp.Value = attributes[mp.Key.ToLowerInvariant()].ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user