summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-06 09:03:20 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-11-06 09:03:32 +0100
commit448044d83163a27d0a07f1067f5b4aeffe2d0ba9 (patch)
tree3bdeb5268af6c79b27538ebd4fad7b2df974d937 /apps/files/lib
parent48d843858de095e83105f55d6b994ad41939f5d4 (diff)
downloadnextcloud-server-448044d83163a27d0a07f1067f5b4aeffe2d0ba9.tar.gz
nextcloud-server-448044d83163a27d0a07f1067f5b4aeffe2d0ba9.zip
Fix getstorage call
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Controller/AjaxController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/AjaxController.php b/apps/files/lib/Controller/AjaxController.php
index 52b774915ea..51a4a5b2a37 100644
--- a/apps/files/lib/Controller/AjaxController.php
+++ b/apps/files/lib/Controller/AjaxController.php
@@ -41,6 +41,7 @@ class AjaxController extends Controller {
* @NoAdminRequired
*/
public function getStorageStats(string $dir = '/'): JSONResponse {
+ \OC_Util::setupFS();
try {
return new JSONResponse([
'status' => 'success',