Renamed config interfaces properly with Section suffix, re-implemented the For<T> UmbracoConfiguration method to retreive specific settings... might use this entirely instead of the nested access as it might make it easier to mock.
This commit is contained in:
@@ -95,7 +95,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
}
|
||||
}
|
||||
|
||||
private static void ResetProperties(IContentImagingAutoFillUploadField uploadFieldConfigNode, IContentBase content)
|
||||
private static void ResetProperties(IImagingAutoFillUploadField uploadFieldConfigNode, IContentBase content)
|
||||
{
|
||||
if (content.Properties[uploadFieldConfigNode.WidthFieldAlias] != null)
|
||||
content.Properties[uploadFieldConfigNode.WidthFieldAlias].Value = string.Empty;
|
||||
@@ -110,7 +110,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
content.Properties[uploadFieldConfigNode.ExtensionFieldAlias].Value = string.Empty;
|
||||
}
|
||||
|
||||
private static void FillProperties(IContentImagingAutoFillUploadField uploadFieldConfigNode, IContentBase content, UmbracoMediaFile um)
|
||||
private static void FillProperties(IImagingAutoFillUploadField uploadFieldConfigNode, IContentBase content, UmbracoMediaFile um)
|
||||
{
|
||||
var size = um.SupportsResizing ? (Size?)um.GetDimensions() : null;
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace umbraco.presentation
|
||||
|
||||
void IHttpModule.Init(HttpApplication context)
|
||||
{
|
||||
if (UmbracoConfiguration.Current.UmbracoSettings.ViewstateMoverModule.Enable)
|
||||
if (UmbracoConfiguration.Current.UmbracoSettings.ViewStateMoverModule.Enable)
|
||||
{
|
||||
context.BeginRequest += new EventHandler(context_BeginRequest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user