diff --git a/src/umbraco.businesslogic/IO/IOHelper.cs b/src/umbraco.businesslogic/IO/IOHelper.cs index 8bd27eab9c..8bc3f886b2 100644 --- a/src/umbraco.businesslogic/IO/IOHelper.cs +++ b/src/umbraco.businesslogic/IO/IOHelper.cs @@ -77,7 +77,12 @@ namespace umbraco.IO return Umbraco.Core.IO.IOHelper.ValidateEditPath(filePath, validDir); } - public static bool ValidateFileExtension(string filePath, List validFileExtensions) + public static bool ValidateEditPath(string filePath, string[] validDirs) + { + return Umbraco.Core.IO.IOHelper.ValidateEditPath(filePath, validDirs); + } + + public static bool ValidateFileExtension(string filePath, List validFileExtensions) { return Umbraco.Core.IO.IOHelper.ValidateFileExtension(filePath, validFileExtensions); } diff --git a/src/umbraco.businesslogic/UmbracoSettings.cs b/src/umbraco.businesslogic/UmbracoSettings.cs index 6e30200699..bd070fb659 100644 --- a/src/umbraco.businesslogic/UmbracoSettings.cs +++ b/src/umbraco.businesslogic/UmbracoSettings.cs @@ -546,6 +546,19 @@ namespace umbraco get { return Umbraco.Core.Configuration.UmbracoSettings.ResolveUrlsFromTextString; } } + + /// + /// Enables MVC, and at the same time disable webform masterpage templates. + /// This ensure views are automaticly created instead of masterpages. + /// Views are display in the tree instead of masterpages and a MVC template editor + /// is used instead of the masterpages editor + /// + /// true if umbraco defaults to using MVC views for templating, otherwise false. + public static bool EnableMvcSupport + { + get { return Umbraco.Core.Configuration.UmbracoSettings.EnableMvcSupport; } + } + /// /// Configuration regarding webservices ///