From 5625326f38935a2e5276132a7f0d0a7c738d1d87 Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Wed, 27 May 2026 17:01:48 +0200 Subject: [PATCH] testing --- php/controller/createArticle-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/controller/createArticle-controller.php b/php/controller/createArticle-controller.php index 5e40dd3..4fc0fc9 100644 --- a/php/controller/createArticle-controller.php +++ b/php/controller/createArticle-controller.php @@ -5,13 +5,13 @@ if (!isset($abs_path)) { } */ require_once '/php/model/LocalArticleManager.php'; - +/* try { $articleManager = ArticleManager::getInstance(); }catch (Exception $e){ die("Fehler bei der Initialisierung des Artikel-Managers: " . $e->getMessage()); } -/* + if ($_SERVER["REQUEST_METHOD"] === "POST") { if(!isset($_POST["title"]) ||!isset($_POST["content"]) || !isset($_POST["category"])){ $_SESSION["message"] = "missing_parameters";