From 7e0c1fac36e6551bcc1a47bce7ec4239f9cc3e90 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Fri, 22 Mar 2013 05:23:11 +0600 Subject: [PATCH] Fixes: #U4-1717 - UmbracoContext.EnsuresContext is public. --- src/Umbraco.Web/UmbracoContext.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web/UmbracoContext.cs b/src/Umbraco.Web/UmbracoContext.cs index 3323c71220..5fd1f249da 100644 --- a/src/Umbraco.Web/UmbracoContext.cs +++ b/src/Umbraco.Web/UmbracoContext.cs @@ -48,10 +48,9 @@ namespace Umbraco.Web /// This is created in order to standardize the creation of the singleton. Normally it is created during a request /// in the UmbracoModule, however this module does not execute during application startup so we need to ensure it /// during the startup process as well. - /// See: http://issues.umbraco.org/issue/U4-1890 + /// See: http://issues.umbraco.org/issue/U4-1890, http://issues.umbraco.org/issue/U4-1717 /// - [UmbracoProposedPublic("http://issues.umbraco.org/issue/U4-1717")] - internal static UmbracoContext EnsureContext(HttpContextBase httpContext, ApplicationContext applicationContext) + public static UmbracoContext EnsureContext(HttpContextBase httpContext, ApplicationContext applicationContext) { return EnsureContext(httpContext, applicationContext, false); } @@ -74,9 +73,9 @@ namespace Umbraco.Web /// This is created in order to standardize the creation of the singleton. Normally it is created during a request /// in the UmbracoModule, however this module does not execute during application startup so we need to ensure it /// during the startup process as well. - /// See: http://issues.umbraco.org/issue/U4-1890 + /// See: http://issues.umbraco.org/issue/U4-1890, http://issues.umbraco.org/issue/U4-1717 /// - internal static UmbracoContext EnsureContext(HttpContextBase httpContext, ApplicationContext applicationContext, bool replaceContext) + public static UmbracoContext EnsureContext(HttpContextBase httpContext, ApplicationContext applicationContext, bool replaceContext) { if (UmbracoContext.Current != null && !replaceContext) return UmbracoContext.Current;