Removes GetLanguageByCultureCode since it is kind of useless and the name is also very misleading

This commit is contained in:
Shannon
2018-04-24 15:59:16 +10:00
parent f49fa7b567
commit a1cd80a0f6
8 changed files with 8 additions and 70 deletions

View File

@@ -100,7 +100,7 @@ namespace Umbraco.Web.Routing
else
{
var result = new List<string>();
var languageIds = new List<int?>(domainUris.Select(x => _localizationService.GetLanguageByCultureCode(x.Culture.Name)?.Id).Where(x => x.HasValue));
var languageIds = new List<int?>(domainUris.Select(x => _localizationService.GetLanguageByIsoCode(x.Culture.Name)?.Id).Where(x => x.HasValue));
foreach (var langId in languageIds)
{
var umbracoUrlName = node.Value<string>(Constants.Conventions.Content.UrlAlias, languageId: langId);