From 9eb6feb5897f1d34b14045126907e1c7e5a616eb Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Fri, 29 May 2026 13:19:49 +0200 Subject: [PATCH] Update createArticle-controller.php --- php/controller/createArticle-controller.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/php/controller/createArticle-controller.php b/php/controller/createArticle-controller.php index 8d3d3f3..375d136 100644 --- a/php/controller/createArticle-controller.php +++ b/php/controller/createArticle-controller.php @@ -17,14 +17,13 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { try { $articleManager = ArticleManager::getInstance(); - //$articleManager->addArticle($title, $content, $author, $category, $tags); - $articleManager->addArticle("Test", "Testkontent", "informatik", "max.mustermann", "Apfel, Birne"); + $articleManager->addArticle($title, $content, $author, $category, $tags); } catch (Exception $e){ $_SESSION["message"] = "internal_error"; } $_SESSION["message"] = "new_article"; // Weiterleitung zur Homepage - //header("location: ../../index.php"); + header("location: ../../index.php"); exit(); }