U4-4190 - enable retrieval of wildcard domains
This commit is contained in:
@@ -143,7 +143,7 @@ namespace umbraco.cms.businesslogic.web
|
||||
return GetDomains(false);
|
||||
}
|
||||
|
||||
internal static IEnumerable<Domain> GetDomains(bool includeWildcards)
|
||||
public static IEnumerable<Domain> GetDomains(bool includeWildcards)
|
||||
{
|
||||
var domains = ApplicationContext.Current.ApplicationCache.GetCacheItem(
|
||||
CacheKeys.DomainCacheKey,
|
||||
@@ -191,6 +191,11 @@ namespace umbraco.cms.businesslogic.web
|
||||
return GetDomains().Where(d => d._root == nodeId).ToArray();
|
||||
}
|
||||
|
||||
public static Domain[] GetDomainsById(int nodeId, bool includeWildcards)
|
||||
{
|
||||
return GetDomains(includeWildcards).Where(d => d._root == nodeId).ToArray();
|
||||
}
|
||||
|
||||
public static bool Exists(string DomainName)
|
||||
{
|
||||
return GetDomain(DomainName) != null;
|
||||
|
||||
Reference in New Issue
Block a user