setFormHelpBlock($key, $content); AdminLogger::make()->logFormStructureEdit($key); App::flash('success', 'Bloc « ' . htmlspecialchars($key) . ' » mis à jour.'); } catch (Exception $e) { ErrorHandler::log('form_help', $e); App::flash('error', 'Erreur lors de la sauvegarde : ' . ErrorHandler::userMessage($e)); } $_SESSION['csrf_token'] = bin2hex(random_bytes(32)); header('Location: /admin/contenus.php#form-help-blocks'); exit;