Refactored usages of HttpContext.IsDebuggerEnabled to use the IHostingEnvironment.IsDebugMode

This commit is contained in:
Bjarke Berg
2020-02-13 07:56:50 +01:00
parent 85afde0ea1
commit 215cb60b15
12 changed files with 67 additions and 28 deletions

View File

@@ -105,7 +105,7 @@ namespace Umbraco.Web
var contextualKey = contextualKeyBuilder(model, viewData);
cacheKey.AppendFormat("c{0}-", contextualKey);
}
return Current.AppCaches.CachedPartialView(htmlHelper, partialViewName, model, cachedSeconds, cacheKey.ToString(), viewData);
return Current.AppCaches.CachedPartialView(Current.HostingEnvironment, htmlHelper, partialViewName, model, cachedSeconds, cacheKey.ToString(), viewData);
}
public static MvcHtmlString EditorFor<T>(this HtmlHelper htmlHelper, string templateName = "", string htmlFieldName = "", object additionalViewData = null)