refactoring

This commit is contained in:
NOrtmann1
2026-05-26 18:06:44 +02:00
parent c7f279b7e9
commit 8762bc1b07
6 changed files with 17 additions and 30 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
try {
//$db = Database::getInstance();
$db = new FileDatabase();
$db = new ArticleManager();
$author = "max.mustermann@web.de"; // wird später aus session bezogen.
$db->newArticle($_POST['post-title'], $_POST['post-content'], $author);
} catch (PDOException $e) {
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
require_once 'php/model/FileDatabase.php';
require_once 'php/model/ArticleManager.php';
require_once 'php/model/Article.php';