From 78c0aab5a5cff7bc370c6c644eab3d0a6b60b3fb Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Sun, 5 Nov 2023 23:51:49 +0000 Subject: [PATCH] Update Libre and OpenELEC Templates. --- emhttp/plugins/dynamix.vm.manager/templates/LibreELEC.form.php | 2 ++ emhttp/plugins/dynamix.vm.manager/templates/OpenELEC.form.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/emhttp/plugins/dynamix.vm.manager/templates/LibreELEC.form.php b/emhttp/plugins/dynamix.vm.manager/templates/LibreELEC.form.php index 7a95546a0..88556695d 100644 --- a/emhttp/plugins/dynamix.vm.manager/templates/LibreELEC.form.php +++ b/emhttp/plugins/dynamix.vm.manager/templates/LibreELEC.form.php @@ -293,6 +293,7 @@ $hdrXML = "\n"; // XML encoding declaratio if (isset($_POST['shares'][0]['source'])) { @mkdir($_POST['shares'][0]['source'], 0777, true); } + $_POST['clock'] = $arrDefaultClocks["other"] ; if ($lv->domain_new($_POST)){ $reply = ['success' => true]; } else { @@ -376,6 +377,7 @@ $hdrXML = "\n"; // XML encoding declaratio if (isset($_POST['shares'][0]['source'])) { @mkdir($_POST['shares'][0]['source'], 0777, true); } + $_POST['clock'] = $arrDefaultClocks["other"] ; $arrExistingConfig = custom::createArray('domain',$strXML); $arrUpdatedConfig = custom::createArray('domain',$lv->config_to_xml($_POST)); array_update_recursive($arrExistingConfig, $arrUpdatedConfig); diff --git a/emhttp/plugins/dynamix.vm.manager/templates/OpenELEC.form.php b/emhttp/plugins/dynamix.vm.manager/templates/OpenELEC.form.php index a476296bb..ce5bbddce 100644 --- a/emhttp/plugins/dynamix.vm.manager/templates/OpenELEC.form.php +++ b/emhttp/plugins/dynamix.vm.manager/templates/OpenELEC.form.php @@ -292,6 +292,7 @@ $hdrXML = "\n"; // XML encoding declaratio if (isset($_POST['shares'][0]['source'])) { @mkdir($_POST['shares'][0]['source'], 0777, true); } + $_POST['clock'] = $arrDefaultClocks["other"] ; if ($lv->domain_new($_POST)){ $reply = ['success' => true]; } else { @@ -375,6 +376,7 @@ $hdrXML = "\n"; // XML encoding declaratio if (isset($_POST['shares'][0]['source'])) { @mkdir($_POST['shares'][0]['source'], 0777, true); } + $_POST['clock'] = $arrDefaultClocks["other"] ; $arrExistingConfig = custom::createArray('domain',$strXML); $arrUpdatedConfig = custom::createArray('domain',$lv->config_to_xml($_POST)); array_update_recursive($arrExistingConfig, $arrUpdatedConfig);