r7: replace region helper

93fea36c91
This commit is contained in:
Sergey Linnik 2019-02-14 11:17:40 +03:00
parent 73c58ad844
commit 9f48774af3
2 changed files with 2 additions and 2 deletions

View File

@ -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))