Update createArticle-controller.php

This commit is contained in:
NOrtmann1
2026-05-26 17:53:51 +02:00
parent 92f1f077d2
commit c7f279b7e9
+2 -1
View File
@@ -1,7 +1,8 @@
<?php
try {
$db = Database::getInstance();
//$db = Database::getInstance();
$db = new FileDatabase();
$author = "max.mustermann@web.de"; // wird später aus session bezogen.
$db->newArticle($_POST['post-title'], $_POST['post-content'], $author);
} catch (PDOException $e) {