Move UmbracoConfig singleton to Current

This commit is contained in:
Stephan
2018-12-12 17:49:24 +01:00
parent e40c9cb227
commit adced099be
77 changed files with 341 additions and 365 deletions

View File

@@ -99,7 +99,7 @@ namespace Umbraco.Web
httpContext,
_publishedSnapshotService,
new WebSecurity(httpContext, _userService, _globalSettings),
UmbracoConfig.For.UmbracoSettings(),
Current.Config.Umbraco(),
_urlProviders,
_globalSettings,
_variationContextAccessor,
@@ -270,7 +270,7 @@ namespace Umbraco.Web
ReportRuntime(level, "Umbraco is booting.");
// let requests pile up and wait for 10s then show the splash anyway
if (UmbracoConfig.For.UmbracoSettings().Content.EnableSplashWhileLoading == false
if (Current.Config.Umbraco().Content.EnableSplashWhileLoading == false
&& ((RuntimeState) _runtime).WaitForRunLevel(TimeSpan.FromSeconds(10))) return true;
// redirect to booting page