Moved more files to abstractions and eliminated the use of JObject

This commit is contained in:
Bjarke Berg
2019-12-05 14:03:09 +01:00
parent 816baa5eaf
commit fb562817bc
39 changed files with 259 additions and 175 deletions

View File

@@ -301,12 +301,17 @@ namespace Umbraco.Core.Configuration
{
try
{
return int.Parse(ConfigurationManager.AppSettings[Constants.AppSettings.VersionCheckPeriod]);
var val = ConfigurationManager.AppSettings[Constants.AppSettings.VersionCheckPeriod];
if (!(val is null))
{
return int.Parse(val);
}
}
catch
{
return 7;
// Ignore
}
return 7;
}
}