mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Add "labs.domain_list_limit" (#1055)
This commit is contained in:
parent
4f2a8b5b9b
commit
613ab074d9
4 changed files with 21 additions and 5 deletions
|
|
@ -4082,8 +4082,20 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
|
|||
$sSearch = (string) $this->GetActionParam('Search', '');
|
||||
|
||||
$iOffset = 0;
|
||||
$iLimit = 99;
|
||||
$sSearch = '';
|
||||
$iLimit = $this->Config()->Get('labs', 'domain_list_limit', 99);
|
||||
|
||||
$sSearch = \trim($sSearch);
|
||||
|
||||
if ($iOffset < 0)
|
||||
{
|
||||
$iOffset = 0;
|
||||
}
|
||||
|
||||
if ($iLimit < 20)
|
||||
{
|
||||
$iLimit = 20;
|
||||
}
|
||||
|
||||
return $this->DefaultResponse(__FUNCTION__,
|
||||
$this->DomainProvider()->GetList($iOffset, $iLimit, $sSearch));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue