parent
73c58ad844
commit
9f48774af3
@ -91,8 +91,8 @@ public static class LanguageProvider
|
|||||||
_log.Debug("HttpContext.Current.Session['redirected'] = null");
|
_log.Debug("HttpContext.Current.Session['redirected'] = null");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var currentRegionDbEntity = MultiRegionHelper.Instance.GetRegionDbEntityFull();
|
var currentIPGeo = MultiRegionHelper.Instance.GetIPGeolocationInfoFull();
|
||||||
var priorityLng = currentRegionDbEntity.Lang;
|
var priorityLng = currentIPGeo.Lang;
|
||||||
if (!String.IsNullOrEmpty(priorityLng)) {
|
if (!String.IsNullOrEmpty(priorityLng)) {
|
||||||
var acceptLng = HttpContext.Current.Request.Headers["Accept-Language"];
|
var acceptLng = HttpContext.Current.Request.Headers["Accept-Language"];
|
||||||
if (!string.IsNullOrEmpty(acceptLng))
|
if (!string.IsNullOrEmpty(acceptLng))
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user