Update DatabaseArticleManager.php
This commit is contained in:
@@ -18,11 +18,11 @@ class DatabaseArticleManager implements ArticleManagerDAO {
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
if (!file_exists("/db/articles.db")) {
|
if (!file_exists(__DIR__ . '/../../db/articles.db')) {
|
||||||
try {
|
try {
|
||||||
$user = 'root';
|
$user = 'root';
|
||||||
$pw = null;
|
$pw = null;
|
||||||
$dsn = 'sqlite:/db/articles.db';
|
$dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db';
|
||||||
$db = new PDO($dsn, $user, $pw);
|
$db = new PDO($dsn, $user, $pw);
|
||||||
|
|
||||||
$db->exec("
|
$db->exec("
|
||||||
|
|||||||
Reference in New Issue
Block a user