Update createArticle-controller.php
This commit is contained in:
@@ -11,7 +11,7 @@ try {
|
||||
|
||||
try {
|
||||
$author = "max.mustermann@web.de"; // wird später aus session bezogen.
|
||||
$articleManager->newArticle(new Article()['post-title'], $_POST['post-content'], $author);
|
||||
$articleManager->addArticle($_Post['title'], $_POST['post-content'], $author);
|
||||
} catch (Exception $e) {
|
||||
echo "Fehler beim Erstellen des Beitrags: " . $e->getMessage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user