Update createArticle-controller.php

This commit is contained in:
2026-05-29 13:19:49 +02:00
parent 23eee02208
commit 9eb6feb589
+2 -3
View File
@@ -17,14 +17,13 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
try { try {
$articleManager = ArticleManager::getInstance(); $articleManager = ArticleManager::getInstance();
//$articleManager->addArticle($title, $content, $author, $category, $tags); $articleManager->addArticle($title, $content, $author, $category, $tags);
$articleManager->addArticle("Test", "Testkontent", "informatik", "max.mustermann", "Apfel, Birne");
} catch (Exception $e){ } catch (Exception $e){
$_SESSION["message"] = "internal_error"; $_SESSION["message"] = "internal_error";
} }
$_SESSION["message"] = "new_article"; $_SESSION["message"] = "new_article";
// Weiterleitung zur Homepage // Weiterleitung zur Homepage
//header("location: ../../index.php"); header("location: ../../index.php");
exit(); exit();
} }