dns/bind: small typo

This commit is contained in:
Franco Fichtner 2023-05-08 10:44:03 +02:00
parent 470a4ba995
commit 055e303393
2 changed files with 9 additions and 9 deletions

View file

@ -40,23 +40,23 @@ class DomainController extends ApiMutableModelControllerBase
/* XXX backwards-compatibility for 22.7 and below */
public function searchMasterDomainAction()
{
return seachPrimaryDomainAction();
return $this->searchPrimaryDomainAction();
}
/* XXX backwards-compatibility for 22.7 and below */
public function searchSlaveDomainAction()
{
return seachSecondaryDomainAction();
return $this->searchSecondaryDomainAction();
}
public function searchPrimaryDomainAction()
{
return $this->searchBase(
'domains.domain',
[ "enabled", "type", "domainname", "ttl", "refresh", "retry", "expire", "negative" ],
"domainname",
[ 'enabled', 'type', 'domainname', 'ttl', 'refresh', 'retry', 'expire', 'negative' ],
'domainname',
function ($record) {
return $record->type->getNodeData()["primary"]["selected"] === 1;
return $record->type->getNodeData()['primary']['selected'] === 1;
}
);
}
@ -65,10 +65,10 @@ class DomainController extends ApiMutableModelControllerBase
{
return $this->searchBase(
'domains.domain',
[ "enabled", "type", "domainname", "primaryip" ],
"domainname",
[ 'enabled', 'type', 'domainname', 'primaryip' ],
'domainname',
function ($record) {
return $record->type->getNodeData()["secondary"]["selected"] === 1;
return $record->type->getNodeData()['secondary']['selected'] === 1;
}
);
}

View file

@ -1,6 +1,6 @@
{#
#
# Copyright (c) 2014-2029 Deciso B.V.
# Copyright (c) 2014-2019 Deciso B.V.
# Copyright (c) 2018-2019 Michael Muenz <m.muenz@gmail.com>
# All rights reserved.
#