SproutCMS

This is the code documentation for the SproutCMS project

function determineBestDomain()

For a given list of domains, determine the best match based on the current HTTP_HOST

If there is an exact match, it is used
If there is an ends-with match, it is used
Failing all that, the first domain in the list is used

Usage

unknown Subsites::determineBestDomain ( mixed $domains );

Arguments

  1. $domains