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

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2021-02-27 05:05:54 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-03-26 16:21:39 +0300
commitf71ae40b3b31c2d83ed7951d158fba348f89b374 (patch)
tree8e3027e8e288751bf50f6fb210fdee535749cffb
parent7ebe7894e95514f6a0c1e4d59d42763371e64df1 (diff)
fix Internal Server Error @ /settings/admin/serverinfo in 21.0.0
Fixes: https://github.com/nextcloud/serverinfo/issues/278 Signed-off-by: Viktor Szakats <commit@vsz.me>
-rw-r--r--lib/DatabaseStatistics.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DatabaseStatistics.php b/lib/DatabaseStatistics.php
index a955f7f..dcfa9cf 100644
--- a/lib/DatabaseStatistics.php
+++ b/lib/DatabaseStatistics.php
@@ -112,7 +112,7 @@ class DatabaseStatistics {
if (file_exists($this->config->getSystemValue('dbhost'))) {
$database_size = filesize($this->config->getSystemValue('dbhost'));
} else {
- $params = $this->connection->getParams();
+ $params = $this->connection->getInner()->getParams();
if (file_exists($params['path'])) {
$database_size = filesize($params['path']);
}