aboutsummaryrefslogtreecommitdiff
path: root/lib/database.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/database.php')
-rw-r--r--lib/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/database.php b/lib/database.php
index e64a80c..5d0fa5c 100644
--- a/lib/database.php
+++ b/lib/database.php
@@ -2,7 +2,7 @@
//connect or create the database
try {
- $db = new PDO('sqlite:'.ROOT.DS.'posts.db');
+ $db = new PDO($config['database_path']);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);