Beitrag erstellen #13

Merged
niklas.ortmann merged 164 commits from Beitrag-erstellen into dev 2026-05-29 13:22:11 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 23eee02208 - Show all commits
+1 -1
View File
@@ -16,7 +16,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$tags = $_POST["tags"];
try {
//$articleManager = ArticleManager::getInstance();
$articleManager = ArticleManager::getInstance();
//$articleManager->addArticle($title, $content, $author, $category, $tags);
$articleManager->addArticle("Test", "Testkontent", "informatik", "max.mustermann", "Apfel, Birne");
} catch (Exception $e){
+1 -1
View File
@@ -17,7 +17,7 @@ class LocalArticleManager implements ArticleManagerDAO {
*/
public function __construct()
{
$this->file = 'data/articles.json';
$this->file = __DIR__ . '/../../data/articles.json';
}
/**