diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-02-10 12:18:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 12:18:39 +0100 |
commit | e0946a1608283bd376f439906c50f3a4eb810839 (patch) | |
tree | 5fce864c23559722aadb755305232b8a0dd40fcc /apps | |
parent | d9cd8b1d37375ad567b4d15828e4d84b9cf58526 (diff) | |
parent | 4532e527878abdf57092bbca7c53b989e6589fcc (diff) | |
download | nextcloud-server-e0946a1608283bd376f439906c50f3a4eb810839.tar.gz nextcloud-server-e0946a1608283bd376f439906c50f3a4eb810839.zip |
Merge pull request #36608 from nextcloud/storageinfo-no-explicit-setup
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index b607764e602..5133661d725 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -137,7 +137,6 @@ class ViewController extends Controller { * @throws \OCP\Files\NotFoundException */ protected function getStorageInfo(string $dir = '/') { - \OC_Util::setupFS(); $rootInfo = \OC\Files\Filesystem::getFileInfo('/', false); return \OC_Helper::getStorageInfo($dir, $rootInfo ?: null); @@ -190,10 +189,6 @@ class ViewController extends Controller { \OCP\Util::addScript('files', 'merged-index', 'files'); \OCP\Util::addScript('files', 'main'); - // mostly for the home storage's free space - // FIXME: Make non static - $storageInfo = $this->getStorageInfo(); - $userId = $this->userSession->getUser()->getUID(); // Get all the user favorites to create a submenu |