From 9918a435add00d284a7034c0b896d37540ea0ad9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 19 Aug 2016 08:14:50 +0200 Subject: Fix SQLite DB size --- lib/Categories/Database.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/Categories/Database.php b/lib/Categories/Database.php index 5f04195..89be595 100644 --- a/lib/Categories/Database.php +++ b/lib/Categories/Database.php @@ -145,8 +145,14 @@ class Database implements ICategory { break; case 'sqlite': + case 'sqlite3': if (file_exists($this->config->getSystemValue('dbhost'))) { $database_size = filesize($this->config->getSystemValue('dbhost')); + } else { + $params = $this->connection->getParams(); + if (file_exists($params['path'])) { + $database_size = filesize($params['path']); + } } break; -- cgit v1.2.3