Fixed U4-1439 4.11.2 DataEditorSetting not working for UserControl wrapper.

This commit is contained in:
NielsHartvig@UMBRACORATI.localdomain
2013-01-15 13:18:37 -01:00
parent fc3681a930
commit cbebe0141f

View File

@@ -165,6 +165,10 @@ namespace umbraco.editorControls.userControlGrapper
private void LoadSetttings(string fileName)
{
// due to legacy, some user controls may not have the tilde start
if (fileName.StartsWith("~/"))
fileName = fileName.Substring(2);
if (System.IO.File.Exists(IOHelper.MapPath("~/" + fileName)))
{