mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Preparing to support wildcard domains.
This commit is contained in:
parent
c811fdf545
commit
126b55b2d5
4 changed files with 126 additions and 44 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue