Simplifies the IContentSection so that there's no nesting of interface classes and updates some unit tests

This commit is contained in:
Shannon
2013-09-16 15:52:59 +10:00
parent 81b43545c1
commit 09b68a75be
65 changed files with 577 additions and 504 deletions

View File

@@ -416,15 +416,15 @@ namespace Umbraco.Core.Models
fs.AddFile(fileName, fileStream);
//Check if file supports resizing and create thumbnails
var supportsResizing = UmbracoConfiguration.Current.UmbracoSettings.Content.Imaging.ImageFileTypes.InvariantContains(extension);
var supportsResizing = UmbracoConfiguration.Current.UmbracoSettings.Content.ImageFileTypes.InvariantContains(extension);
//the config section used to auto-fill properties
IContentImagingAutoFillUploadField uploadFieldConfigNode = null;
//Check for auto fill of additional properties
if (UmbracoConfiguration.Current.UmbracoSettings.Content.Imaging.ImageAutoFillProperties != null)
if (UmbracoConfiguration.Current.UmbracoSettings.Content.ImageAutoFillProperties != null)
{
uploadFieldConfigNode = UmbracoConfiguration.Current.UmbracoSettings.Content.Imaging.ImageAutoFillProperties
uploadFieldConfigNode = UmbracoConfiguration.Current.UmbracoSettings.Content.ImageAutoFillProperties
.Single(x => x.Alias == propertyTypeAlias);
}