mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-08 16:34:18 -04:00
dns/bind: small typo
This commit is contained in:
parent
470a4ba995
commit
055e303393
2 changed files with 9 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue