Fixed issues where we used the global setting UmbracoPath instead of the constant
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Umbraco.Cms.Infrastructure.Install
|
||||
_packagesPermissionsDirs = new[]
|
||||
{
|
||||
hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.Bin),
|
||||
hostingEnvironment.MapPathContentRoot(_globalSettings.UmbracoPath),
|
||||
hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.Umbraco),
|
||||
hostingEnvironment.MapPathWebRoot(_globalSettings.UmbracoPath),
|
||||
hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.Packages)
|
||||
};
|
||||
|
||||
@@ -624,7 +624,7 @@ namespace Umbraco.Cms.Core.Services.Implement
|
||||
|
||||
public IEnumerable<string> GetPartialViewSnippetNames(params string[] filterNames)
|
||||
{
|
||||
var snippetPath = _hostingEnvironment.MapPathContentRoot($"{_globalSettings.UmbracoPath}/PartialViewMacros/Templates/");
|
||||
var snippetPath = _hostingEnvironment.MapPathContentRoot($"{Constants.SystemDirectories.Umbraco}/PartialViewMacros/Templates/");
|
||||
var files = Directory.GetFiles(snippetPath, "*.cshtml")
|
||||
.Select(Path.GetFileNameWithoutExtension)
|
||||
.Except(filterNames, StringComparer.InvariantCultureIgnoreCase)
|
||||
@@ -835,7 +835,7 @@ namespace Umbraco.Cms.Core.Services.Implement
|
||||
fileName += ".cshtml";
|
||||
}
|
||||
|
||||
var snippetPath = _hostingEnvironment.MapPathContentRoot($"{_globalSettings.UmbracoPath}/PartialViewMacros/Templates/{fileName}");
|
||||
var snippetPath = _hostingEnvironment.MapPathContentRoot($"{Constants.SystemDirectories.Umbraco}/PartialViewMacros/Templates/{fileName}");
|
||||
return System.IO.File.Exists(snippetPath)
|
||||
? Attempt<string>.Succeed(snippetPath)
|
||||
: Attempt<string>.Fail();
|
||||
|
||||
@@ -347,7 +347,7 @@ namespace Umbraco.Cms.Web.Common.ModelsBuilder
|
||||
}
|
||||
|
||||
|
||||
public string PureLiveDirectoryAbsolute() => _hostingEnvironment.MapPathContentRoot("~/umbraco/Data/TEMP/PureLive");
|
||||
public string PureLiveDirectoryAbsolute() => _hostingEnvironment.MapPathContentRoot(Core.Constants.SystemDirectories.TempData+"/InMemoryAuto");
|
||||
|
||||
|
||||
// This is NOT thread safe but it is only called from within a lock
|
||||
|
||||
Reference in New Issue
Block a user