From aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sat, 2 Sep 2023 00:18:55 -0600 Subject: Remove ActivityPub and Twitter support, and fix localhost --- lib/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/database.php') 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); -- cgit v1.2.3