diff --git a/app/pages/config.php b/app/pages/config.php index 16cc0b8..3a59e0f 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -121,7 +121,12 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { 'jitsi_url' => $_POST['jitsi_url'], 'jilo_database' => $_POST['jilo_database'], ]; - $platformObject->editPlatform($platform, $updatedPlatform); + $result = $platformObject->editPlatform($platform, $updatedPlatform); + if ($result === true) { + $_SESSION['notice'] = "Platform \"{$_REQUEST['name']}\" edited."; + } else { + $_SESSION['error'] = "Editing the platform failed. Error: $result"; + } } diff --git a/app/templates/config-platform-edit.php b/app/templates/config-platform-edit.php index 5e5651f..e15f72e 100644 --- a/app/templates/config-platform-edit.php +++ b/app/templates/config-platform-edit.php @@ -3,7 +3,7 @@
Jilo configuration for Jitsi platform "= htmlspecialchars($platformDetails[0]['name']) ?>" :: edit