mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
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>
This commit is contained in:
parent
7341d339eb
commit
4532e52787
1 changed files with 0 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue