makes SystemDirectories and SystemFiles public.

moves ResolveUrlsFromTextString to TemplateUtilities class and obsoletes other ones.
Fixes an issue if content cache is stored in codegen folder and not in med trust.
Updates the XmlDocument (IDocumentProperty) to always return a value with parsed {localLink} and resolved Urls and cache them so the parsing only happens once.
This commit is contained in:
Shannon Deminick
2012-09-29 11:11:48 +07:00
parent 11fd6553e9
commit 1aebce7ad6
13 changed files with 158 additions and 169 deletions

View File

@@ -8,7 +8,7 @@ using System.Web;
namespace Umbraco.Core.IO
{
internal class SystemFiles
public class SystemFiles
{
public static string AccessXml
@@ -96,7 +96,7 @@ namespace Umbraco.Core.IO
{
get
{
if (ContentCacheXmlIsEphemeral)
if (ContentCacheXmlIsEphemeral && SystemUtilities.GetCurrentTrustLevel() == AspNetHostingPermissionLevel.Unrestricted)
{
return Path.Combine(HttpRuntime.CodegenDir, @"UmbracoData\umbraco.config");
}
@@ -104,7 +104,7 @@ namespace Umbraco.Core.IO
}
}
public static bool ContentCacheXmlIsEphemeral
internal static bool ContentCacheXmlIsEphemeral
{
get
{