Checking for httpcontext, though I feel this will need to be rewritten

This commit is contained in:
Nicholas Mayne
2014-09-12 00:24:05 +01:00
parent fa1de09a4f
commit e5a8db2f89

View File

@@ -30,6 +30,10 @@ namespace Orchard.Localization.Services {
var culture = _cultureStorageProvider.GetCulture();
if (culture == null) {
var httpContext = _httpContextAccessor.Current();
if (httpContext == null) return null;
var browserCulture = GetBrowserCulture();
if (browserCulture == null)