diff --git a/php/model/DatabaseArticleManager.php b/php/model/DatabaseArticleManager.php index 04eddf7..72de769 100644 --- a/php/model/DatabaseArticleManager.php +++ b/php/model/DatabaseArticleManager.php @@ -51,7 +51,7 @@ class DatabaseArticleManager implements ArticleManagerDAO { try { $user = 'root'; $pw = null; - $dsn = 'sqlite:../../db/articles.db'; + $dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db'; return new PDO($dsn, $user, $pw); } catch (PDOException $e) { throw new InternalServerErrorException($e->getMessage());