Skip to content

Commit

Permalink
Fixed an error with Settings if a portal is located in a subdirectory…
Browse files Browse the repository at this point in the history
… (e.g. http://localhost/dnntest ). Seems that the retrieval of the Templatepath is not ok when haveing a subportal or something else additional in the path.
  • Loading branch information
Torsten Weggen committed Feb 18, 2013
1 parent ab005b6 commit f11273c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Controls/TemplateControl.ascx.cs
Expand Up @@ -105,7 +105,11 @@ private string TemplatePath
{
get
{
return MapPath("~" + TemplateSourceDirectory + @"\..\Templates\" + Key + "\\");
string controlPath = MapPath(AppRelativeVirtualPath);
FileInfo fi = new FileInfo(controlPath);
string templatePath = fi.DirectoryName + @"\..\Templates\" + Key +"\\";
fi = new FileInfo(templatePath);
return fi.DirectoryName + "\\";
}
}

Expand Down

0 comments on commit f11273c

Please sign in to comment.