net/udpbroadcastrelay: update controller interface for 24.7; closes #4107

This commit is contained in:
Martin Wasley
2024-07-26 08:03:01 +02:00
committed by Franco Fichtner
parent 30fe0beda9
commit 7a533a171b
2 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= udpbroadcastrelay
PLUGIN_VERSION= 1.0
PLUGIN_REVISION= 3
PLUGIN_REVISION= 4
PLUGIN_COMMENT= Control udpbroadcastrelay processes
PLUGIN_DEPENDS= udpbroadcastrelay
PLUGIN_MAINTAINER= mjwasley@gmail.com
@@ -45,9 +45,6 @@ class ServiceController extends ApiMutableModelControllerBase
public function statusAction($uuid)
{
$result = array("result" => "failed", "function" => "status");
if ($this->request->isPost()) {
$this->sessionClose();
}
if ($uuid != null) {
$mdlUDPBroadcastRelay = new UDPBroadcastRelay();
$node = $mdlUDPBroadcastRelay->getNodeByReference('udpbroadcastrelay.' . $uuid);
@@ -127,9 +124,6 @@ class ServiceController extends ApiMutableModelControllerBase
public function configAction()
{
$result = array("result" => "failed", "function" => "config");
if ($this->request->isPost()) {
$this->sessionClose();
}
$result['result'] = $this->callBackend('template');
return $result;
}
@@ -140,9 +134,6 @@ class ServiceController extends ApiMutableModelControllerBase
*/
public function reloadAction()
{
if ($this->request->isPost()) {
$this->sessionClose();
}
$result = $this->configAction();
if ($result['result'] == 'OK') {
$result['function'] = "reload";