mirror of
https://github.com/nextcloud/server.git
synced 2026-02-24 02:11:51 -05:00
Merge pull request #23821 from nextcloud/td/enh/no_fs_setup_by_default
Do not setup the default FS on normal routes
This commit is contained in:
commit
1a30e4d28f
3 changed files with 2 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ class AjaxController extends Controller {
|
|||
* @NoAdminRequired
|
||||
*/
|
||||
public function getStorageStats(string $dir = '/'): JSONResponse {
|
||||
\OC_Util::setupFS();
|
||||
try {
|
||||
return new JSONResponse([
|
||||
'status' => 'success',
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ class ViewController extends Controller {
|
|||
* @throws \OCP\Files\NotFoundException
|
||||
*/
|
||||
protected function getStorageInfo() {
|
||||
\OC_Util::setupFS();
|
||||
$dirInfo = \OC\Files\Filesystem::getFileInfo('/', false);
|
||||
|
||||
return \OC_Helper::getStorageInfo('/', $dirInfo);
|
||||
|
|
|
|||
|
|
@ -1006,7 +1006,6 @@ class OC {
|
|||
OC_App::loadApps(['filesystem', 'logging']);
|
||||
OC_App::loadApps();
|
||||
}
|
||||
OC_Util::setupFS();
|
||||
OC::$server->getRouter()->match(\OC::$server->getRequest()->getRawPathInfo());
|
||||
return;
|
||||
} catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue