After v6.1.0, the GetCurrentDomains() will return NULL, if the root node has language setting and no domain name associate with it. Any idea how to fix the following code?
Thanks for your help.
@{
main[] domains = umbraco.library.GetCurrentDomains(Node.GetCurrent().Id);
if (domains != null)
{
foreach (Domain d in domains)
{
@d.Language.CultureAlias
}
}
}
v 6.1.0 multi-language
After v6.1.0, the GetCurrentDomains() will return NULL, if the root node has language setting and no domain name associate with it. Any idea how to fix the following code?
Thanks for your help.
is working on a reply...