From 1c945185b4dcb6934d89cec3c1cc2b9a4e8db17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 17 Oct 2019 17:55:47 +0200 Subject: [PATCH] allow passing sqlite3 filepath to PileDB --- www/_util/PileDB.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/_util/PileDB.php b/www/_util/PileDB.php index bd1d032..f8a324c 100644 --- a/www/_util/PileDB.php +++ b/www/_util/PileDB.php @@ -4,9 +4,9 @@ class PileDB { private $db; - function __construct() + function __construct($dbpath = "pile.db") { - $this->db = new SQLite3("pile.db"); + $this->db = new SQLite3($dbpath); } function prepare($statement)