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()
{
if (!file_exists("/db/articles.db")) {
if (!file_exists(__DIR__ . '/../../db/articles.db')) {
try {
$user = 'root';
$pw = null;
$dsn = 'sqlite:/db/articles.db';
$dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db';
$db = new PDO($dsn, $user, $pw);
$db->exec("