From 215cb60b157feb29f7c85765e82ab14aed3250a1 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Thu, 13 Feb 2020 07:56:50 +0100 Subject: [PATCH] Refactored usages of HttpContext.IsDebuggerEnabled to use the IHostingEnvironment.IsDebugMode --- .../Umbraco/Views/AuthorizeUpgrade.cshtml | 2 +- .../Umbraco/Views/Default.cshtml | 2 +- src/Umbraco.Web/CacheHelperExtensions.cs | 5 ++++- .../Editors/BackOfficeController.cs | 21 ++++++++++++------- src/Umbraco.Web/Editors/BackOfficeModel.cs | 7 ++++++- .../Editors/BackOfficePreviewModel.cs | 5 +++-- .../Editors/BackOfficeServerVariables.cs | 17 ++++++++------- src/Umbraco.Web/Editors/PreviewController.cs | 11 ++++++++-- .../HtmlHelperBackOfficeExtensions.cs | 5 +++-- src/Umbraco.Web/HtmlHelperRenderExtensions.cs | 2 +- .../Mvc/MinifyJavaScriptResultAttribute.cs | 16 +++++++++++++- src/Umbraco.Web/Mvc/UmbracoController.cs | 2 +- 12 files changed, 67 insertions(+), 28 deletions(-) diff --git a/src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml b/src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml index e95057efe9..11033aa785 100644 --- a/src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml @@ -48,7 +48,7 @@ redirectUrl = Url.Action("AuthorizeUpgrade", "BackOffice") }); } - @Html.BareMinimumServerVariablesScript(Url, externalLoginUrl, Model.Features, Model.GlobalSettings, Model.UmbracoVersion, Model.UmbracoSettingsSection, Model.IOHelper, Model.TreeCollection) + @Html.BareMinimumServerVariablesScript(Url, externalLoginUrl, Model.Features, Model.GlobalSettings, Model.UmbracoVersion, Model.UmbracoSettingsSection, Model.IOHelper, Model.TreeCollection, Model.HttpContextAccessor, Model.HostingEnvironment)