Update DatabaseArticleManager.php
This commit is contained in:
@@ -22,7 +22,7 @@ class DatabaseArticleManager implements ArticleManagerDAO {
|
|||||||
try {
|
try {
|
||||||
$user = 'root';
|
$user = 'root';
|
||||||
$pw = null;
|
$pw = null;
|
||||||
$dsn = 'sqlite: ../../db/articles.db';
|
$dsn = 'sqlite:../../db/articles.db';
|
||||||
$db = new PDO($dsn, $user, $pw);
|
$db = new PDO($dsn, $user, $pw);
|
||||||
|
|
||||||
$db->exec("
|
$db->exec("
|
||||||
@@ -51,7 +51,7 @@ class DatabaseArticleManager implements ArticleManagerDAO {
|
|||||||
try {
|
try {
|
||||||
$user = 'root';
|
$user = 'root';
|
||||||
$pw = null;
|
$pw = null;
|
||||||
$dsn = 'sqlite: ../../db/gaestebuch.db';
|
$dsn = 'sqlite:../../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