diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-19 09:14:50 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-19 09:14:50 +0300 |
commit | 9918a435add00d284a7034c0b896d37540ea0ad9 (patch) | |
tree | 205a4f0dbecf29424bab2715ec46db149497232a /lib | |
parent | 35d08281b7e549de2724e574ff695fa44e6efc40 (diff) |
Fix SQLite DB size
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Categories/Database.php | 6 |
1 files changed, 6 insertions, 0 deletions
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; |