Move UmbracoConfig singleton to Current
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Web.Http.Filters;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Configuration;
|
||||
using Umbraco.Core.Models;
|
||||
using Umbraco.Web.Models;
|
||||
@@ -58,9 +59,9 @@ namespace Umbraco.Web.Editors
|
||||
var cookie = new CookieHeaderValue("UMB_UPDCHK", "1")
|
||||
{
|
||||
Path = "/",
|
||||
Expires = DateTimeOffset.Now.AddDays(UmbracoConfig.For.GlobalSettings().VersionCheckPeriod),
|
||||
Expires = DateTimeOffset.Now.AddDays(Current.Config.Global().VersionCheckPeriod),
|
||||
HttpOnly = true,
|
||||
Secure = UmbracoConfig.For.GlobalSettings().UseHttps
|
||||
Secure = Current.Config.Global().UseHttps
|
||||
};
|
||||
context.Response.Headers.AddCookies(new[] { cookie });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user