Update DatabaseArticleManager.php

This commit is contained in:
2026-06-05 11:18:46 +02:00
parent c798bbd230
commit 981e78ff7e
+2 -2
View File
@@ -18,11 +18,11 @@ class DatabaseArticleManager implements ArticleManagerDAO {
*/ */
public function __construct() public function __construct()
{ {
if (!file_exists("/db/articles.db")) { if (!file_exists(__DIR__ . '/../../db/articles.db')) {
try { try {
$user = 'root'; $user = 'root';
$pw = null; $pw = null;
$dsn = 'sqlite:/db/articles.db'; $dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db';
$db = new PDO($dsn, $user, $pw); $db = new PDO($dsn, $user, $pw);
$db->exec(" $db->exec("