Implemented a real .Net configuration section for umbracoSettings.config + unit tests for every property. NOTE: This isn't referenced in the codebase yet, going to start setting default values for most of the properties so that we can remove them from the config file for shipping (ship minimal config) then reference these settings in the codebase.

This commit is contained in:
Shannon
2013-08-31 11:28:19 +10:00
parent aa0fca5de9
commit 7806762b80
131 changed files with 5317 additions and 1793 deletions

View File

@@ -947,7 +947,7 @@ namespace Umbraco.Core
/// <remarks>Checks <c>UmbracoSettings.ForceSafeAliases</c> to determine whether it should filter the text.</remarks>
public static string ToSafeAliasWithForcingCheck(this string alias)
{
return UmbracoSettings.ForceSafeAliases ? alias.ToSafeAlias() : alias;
return LegacyUmbracoSettings.ForceSafeAliases ? alias.ToSafeAlias() : alias;
}
/// <summary>
@@ -959,7 +959,7 @@ namespace Umbraco.Core
/// <remarks>Checks <c>UmbracoSettings.ForceSafeAliases</c> to determine whether it should filter the text.</remarks>
public static string ToSafeAliasWithForcingCheck(this string alias, CultureInfo culture)
{
return UmbracoSettings.ForceSafeAliases ? alias.ToSafeAlias(culture) : alias;
return LegacyUmbracoSettings.ForceSafeAliases ? alias.ToSafeAlias(culture) : alias;
}
// note: LegacyShortStringHelper will produce a 100% backward-compatible output for ToUmbracoAlias.