src: style sweep

This commit is contained in:
Franco Fichtner 2023-04-20 10:19:59 +02:00
parent d38e624c90
commit 85116f7bc3
2 changed files with 6 additions and 4 deletions

View File

@ -38,5 +38,4 @@ class AclController extends IndexController
$this->view->formDialogAcl = $this->getForm('dialogAcl');
$this->view->pick('OPNsense/Unbound/acl');
}
}

View File

@ -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;