debugging

This commit is contained in:
2026-05-29 13:16:41 +02:00
parent 5c613a82c0
commit ca4dfd03e4
+1 -2
View File
@@ -16,9 +16,8 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$tags = $_POST["tags"]; $tags = $_POST["tags"];
try { try {
$articleManager = ArticleManager::getInstance(); //$articleManager = ArticleManager::getInstance();
//$articleManager->addArticle($title, $content, $author, $category, $tags); //$articleManager->addArticle($title, $content, $author, $category, $tags);
echo "Test";
$articleManager->addArticle("Test", "Testkontent", "informatik", "max.mustermann", "Apfel, Birne"); $articleManager->addArticle("Test", "Testkontent", "informatik", "max.mustermann", "Apfel, Birne");
} catch (Exception $e){ } catch (Exception $e){
$_SESSION["message"] = "internal_error"; $_SESSION["message"] = "internal_error";