dev auf main #68

Open
niklas.ortmann wants to merge 1044 commits from devNachCSRF into main
Showing only changes of commit 1401c3afe7 - Show all commits
+2 -2
View File
@@ -18,7 +18,7 @@ class DatabaseArticleManager implements ArticleManagerDAO {
*/
public function __construct()
{
if (!file_exists(__DIR__ . '/../../db/articles.db')) {
if (!file_exists(__DIR__ . '/../../db/eduforgeDB.db')) {
try {
$db = $this->getConnection();
@@ -59,7 +59,7 @@ class DatabaseArticleManager implements ArticleManagerDAO {
try {
$user = 'root';
$pw = null;
$dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db';
$dsn = 'sqlite:' . __DIR__ . '/../../db/eduforgeDB.db';
return new PDO($dsn, $user, $pw);
} catch (PDOException $e) {
throw new InternalServerErrorException($e->getMessage());