Update DatabaseArticleManager.php

This commit is contained in:
2026-06-05 11:22:38 +02:00
parent 981e78ff7e
commit 11da418f60
+1 -1
View File
@@ -51,7 +51,7 @@ class DatabaseArticleManager implements ArticleManagerDAO {
try { try {
$user = 'root'; $user = 'root';
$pw = null; $pw = null;
$dsn = 'sqlite:../../db/articles.db'; $dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db';
return new PDO($dsn, $user, $pw); return new PDO($dsn, $user, $pw);
} catch (PDOException $e) { } catch (PDOException $e) {
throw new InternalServerErrorException($e->getMessage()); throw new InternalServerErrorException($e->getMessage());