debugging

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