Update DatabaseArticleManager.php
This commit is contained in:
@@ -51,7 +51,7 @@ class DatabaseArticleManager implements ArticleManagerDAO {
|
|||||||
try {
|
try {
|
||||||
$user = 'root';
|
$user = 'root';
|
||||||
$pw = null;
|
$pw = null;
|
||||||
$dsn = 'sqlite:../../db/articles.db';
|
$dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db';
|
||||||
return new PDO($dsn, $user, $pw);
|
return new PDO($dsn, $user, $pw);
|
||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
throw new InternalServerErrorException($e->getMessage());
|
throw new InternalServerErrorException($e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user