diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-09-02 00:18:55 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-09-02 00:41:00 -0600 |
commit | aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315 (patch) | |
tree | be33e8c6dd22e1eb62a02488c0a305f11fcbfa75 /lib/database.php | |
parent | 706c4cc1fa62492344089a3310c7bcea1041f78b (diff) | |
download | microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.tar.gz microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.tar.bz2 microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.zip |
Remove ActivityPub and Twitter support, and fix localhost
Diffstat (limited to 'lib/database.php')
-rw-r--r-- | lib/database.php | 2 |
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); |