Refactors IDomain model, simplifies it so that it doesn't contain references, simplifies the domain repository to no longer require lookups of content and languages, updates all other code referencing IDomain and now if a language lookup is required it is made when appropriate.
This commit is contained in:
@@ -235,7 +235,7 @@ namespace Umbraco.Web.Routing
|
||||
.Reverse()
|
||||
.Select(int.Parse)
|
||||
.TakeWhile(id => id != stopNodeId)
|
||||
.Select(id => domains.FirstOrDefault(d => d.RootContent.Id == id && d.IsWildcard == false))
|
||||
.Select(id => domains.FirstOrDefault(d => d.RootContentId == id && d.IsWildcard == false))
|
||||
.SkipWhile(domain => domain == null)
|
||||
.FirstOrDefault();
|
||||
}
|
||||
@@ -256,7 +256,7 @@ namespace Umbraco.Web.Routing
|
||||
.Reverse()
|
||||
.Select(int.Parse)
|
||||
.TakeWhile(id => id != stopNodeId)
|
||||
.Select(id => domains.FirstOrDefault(d => d.RootContent.Id == id && d.IsWildcard))
|
||||
.Select(id => domains.FirstOrDefault(d => d.RootContentId == id && d.IsWildcard))
|
||||
.FirstOrDefault(domain => domain != null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user