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:
@@ -57,7 +57,7 @@ namespace Umbraco.Core.Strings
|
||||
|
||||
static void InitializeLegacyUrlReplaceCharacters()
|
||||
{
|
||||
var replaceChars = UmbracoSettings.UrlReplaceCharacters;
|
||||
var replaceChars = LegacyUmbracoSettings.UrlReplaceCharacters;
|
||||
if (replaceChars == null) return;
|
||||
var nodes = replaceChars.SelectNodes("char");
|
||||
if (nodes == null) return;
|
||||
@@ -234,7 +234,7 @@ function validateSafeAlias(id, value, immediate, callback) {{
|
||||
public string GetShortStringServicesJavaScript(string controllerPath)
|
||||
{
|
||||
return string.Format(SssjsFormat,
|
||||
UmbracoSettings.ForceSafeAliases ? "true" : "false", controllerPath);
|
||||
LegacyUmbracoSettings.ForceSafeAliases ? "true" : "false", controllerPath);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user