mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
system: expannd to array if not an array
Allows command line use:
# pluginctl route_reload [wan]
This commit is contained in:
parent
4359fcbf11
commit
dc9e22331e
@ -489,8 +489,12 @@ function core_run()
|
||||
];
|
||||
}
|
||||
|
||||
function core_routing_batch($verbose, $interfaces = [])
|
||||
function core_routing_batch($verbose, $interfaces = [null])
|
||||
{
|
||||
if (!is_array($interfaces)) {
|
||||
$interfaces = [$interfaces];
|
||||
}
|
||||
|
||||
foreach ($interfaces as $interface) {
|
||||
system_routing_configure($verbose, $interface);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user