Commit 0a5d4b71 authored by Franco Fichtner's avatar Franco Fichtner

mvc: style sweep

(cherry picked from commit 928d169c)
parent b693693f
......@@ -211,20 +211,20 @@ class ServiceController extends ApiControllerBase
*/
public function reloadRulesAction()
{
$status = "failed";
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$backend = new Backend();
// flush rule configuration
$bckresult = trim($backend->configdRun("template reload OPNsense.IDS"));
if ($bckresult == "OK") {
$status = $backend->configdRun("ids reload", $detach);
} else {
$status = "template error";
}
}
return array("status" => $status);
$status = "failed";
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$backend = new Backend();
// flush rule configuration
$bckresult = trim($backend->configdRun("template reload OPNsense.IDS"));
if ($bckresult == "OK") {
$status = $backend->configdRun("ids reload", $detach);
} else {
$status = "template error";
}
}
return array("status" => $status);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment