diff options
author | Robin Appelman <robin@icewind.nl> | 2023-02-08 13:47:55 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-02-08 13:47:55 +0100 |
commit | 4532e527878abdf57092bbca7c53b989e6589fcc (patch) | |
tree | 25b1484da66119aa27054408c80cfbda1a94c5c2 /apps | |
parent | 7341d339eb7a1aa20c6b35e8edb40c1cd7946b96 (diff) | |
download | nextcloud-server-4532e527878abdf57092bbca7c53b989e6589fcc.tar.gz nextcloud-server-4532e527878abdf57092bbca7c53b989e6589fcc.zip |
remove explicit setup when getting storage info
the implicit setup gets enough data without having to do a full setup.
Saves having to do a full fs setup for the files webui template
Signed-off-by: Robin Appelman <robin@icewind.nl>
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 |