Refactor configuration for DI

This commit is contained in:
Stephan
2019-01-07 10:43:28 +01:00
parent 775dd67254
commit 19ae9f5dee
104 changed files with 592 additions and 532 deletions

View File

@@ -65,7 +65,7 @@ namespace Umbraco.Web
if (UmbracoContext.Current.InPreviewMode)
{
var htmlBadge =
String.Format(Current.Config.Umbraco().Content.PreviewBadge,
String.Format(Current.Configs.Settings().Content.PreviewBadge,
IOHelper.ResolveUrl(SystemDirectories.Umbraco),
UmbracoContext.Current.HttpContext.Server.UrlEncode(UmbracoContext.Current.HttpContext.Request.Path));
return new MvcHtmlString(htmlBadge);