Fixed merge issues
This commit is contained in:
@@ -345,7 +345,7 @@ namespace Umbraco.Core.Persistence.Repositories
|
||||
var parentDirectory = System.IO.Path.GetDirectoryName(relativeFilePath);
|
||||
|
||||
// don't want to delete the media folder if not using directories.
|
||||
if (UmbracoSettings.UploadAllowDirectories && parentDirectory != fs.GetRelativePath("/"))
|
||||
if (LegacyUmbracoSettings.UploadAllowDirectories && parentDirectory != fs.GetRelativePath("/"))
|
||||
{
|
||||
//issue U4-771: if there is a parent directory the recursive parameter should be true
|
||||
fs.DeleteDirectory(parentDirectory, String.IsNullOrEmpty(parentDirectory) == false);
|
||||
|
||||
@@ -289,7 +289,7 @@ namespace Umbraco.Tests.Persistence.Repositories
|
||||
//assign the db context
|
||||
new DatabaseContext(dbFactory),
|
||||
//assign the service context
|
||||
new ServiceContext(UnitOfWorkProvider, new FileUnitOfWorkProvider(), new PublishingStrategy()),
|
||||
new ServiceContext(UnitOfWorkProvider, new FileUnitOfWorkProvider(), new PublishingStrategy(), cacheHelper),
|
||||
//disable cache
|
||||
cacheHelper)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user