fix #29470 - macros rendered twice

This commit is contained in:
sgay
2011-01-20 13:47:46 -01:00
parent 7c87b09e97
commit 3b7c8d73de

View File

@@ -487,6 +487,11 @@ namespace umbraco
TimeSpan.Zero,
CacheItemPriority.Low,
null);
// zb-00003 #29470 : replace by text if not already text
// otherwise it is rendered twice
if (!(macroControl is LiteralControl))
macroControl = new LiteralControl(sw.ToString());
}
}
}