dev auf main #68

Open
niklas.ortmann wants to merge 1044 commits from devNachCSRF into main
Showing only changes of commit 981e78ff7e - Show all commits
+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("