mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
src: style sweep
This commit is contained in:
parent
d38e624c90
commit
85116f7bc3
@ -38,5 +38,4 @@ class AclController extends IndexController
|
||||
$this->view->formDialogAcl = $this->getForm('dialogAcl');
|
||||
$this->view->pick('OPNsense/Unbound/acl');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -68,13 +68,16 @@ class M1_0_6 extends BaseModelMigration
|
||||
}
|
||||
|
||||
/* for every network that has a description provided, we create a new ACL */
|
||||
$network = sprintf("%s/%s",
|
||||
(string)$row->acl_network, (string)$row->mask);
|
||||
$network = sprintf(
|
||||
"%s/%s",
|
||||
(string)$row->acl_network,
|
||||
(string)$row->mask
|
||||
);
|
||||
|
||||
if (!empty($row->description)) {
|
||||
$new = $model->acls->acl->add();
|
||||
$tmp = $node['name'];
|
||||
$node['name'] .= '-'.(string)$row->description;
|
||||
$node['name'] .= '-' . (string)$row->description;
|
||||
$node['networks'] = $network;
|
||||
$new->setNodes($node);
|
||||
$node['name'] = $tmp;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user