Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-19 09:14:50 +0300
committerJoas Schilling <coding@schilljs.com>2016-08-19 09:14:50 +0300
commit9918a435add00d284a7034c0b896d37540ea0ad9 (patch)
tree205a4f0dbecf29424bab2715ec46db149497232a /lib
parent35d08281b7e549de2724e574ff695fa44e6efc40 (diff)
Fix SQLite DB size
Diffstat (limited to 'lib')
-rw-r--r--lib/Categories/Database.php6
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;