Preparing to support wildcard domains.

This commit is contained in:
RainLoop Team 2014-02-07 20:12:43 +04:00
parent c811fdf545
commit 126b55b2d5
4 changed files with 126 additions and 44 deletions

View file

@ -37,12 +37,11 @@ class Domain extends \RainLoop\Providers\AbstractProvider
* @param string $sName
* @param bool $bDefaultOnNull = false
*
* @return \RainLoop\Domain | null
* @return \RainLoop\Domain|null
*/
public function Load($sName, $bDefaultOnNull = false)
{
$oDomain = $this->oDriver->Load($sName);
return $oDomain ? $oDomain : ($bDefaultOnNull ? $this->oDriver->Load('default') : null);
return $this->oDriver->Load($sName, $bDefaultOnNull);
}
/**