Fixes host adding
parent
84901a77e0
commit
ad6b2d0799
|
@ -120,7 +120,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
|
|
||||||
// FIXME the new file is not loaded on first page load
|
// FIXME the new file is not loaded on first page load
|
||||||
unset($config);
|
unset($config);
|
||||||
header("Location: $app_root?platform=$platform_id&page=config");
|
// header("Location: $app_root?platform=$platform_id&page=config");
|
||||||
|
header("Location: $app_root?page=config&item=$item");
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
// no form submitted, show the templates
|
// no form submitted, show the templates
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="card text-center w-50 mx-auto">
|
<div class="card text-center w-50 mx-auto">
|
||||||
<p class="h4 card-header">Add new host in Jitsi platform <strong><?= htmlspecialchars($platformDetails[0]['name']) ?></strong></p>
|
<p class="h4 card-header">Add new host in Jitsi platform <strong><?= htmlspecialchars($platformDetails[0]['name']) ?></strong></p>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config&item=host">
|
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?page=config&item=host">
|
||||||
|
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
<div class="col-md-4 text-end">
|
<div class="col-md-4 text-end">
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<p class="text-start"><small>description or name of the host (optional)</small></p>
|
<p class="text-start"><small>description or name of the host (optional)</small></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="platform_id" value="<?= htmlspecialchars($platformDetails[0]['id'])?>" />
|
<input type="hidden" name="platform" value="<?= htmlspecialchars($platformDetails[0]['id'])?>" />
|
||||||
<input type="hidden" name="item" value="host" />
|
<input type="hidden" name="item" value="host" />
|
||||||
<input type="hidden" name="new" value="true" />
|
<input type="hidden" name="new" value="true" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue