diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-23 20:11:46 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-04 18:29:50 +0300 |
commit | 5c0fe934988960ece3ac71d5a1dfc8df405413aa (patch) | |
tree | a4b4cded5a1876ba58651f87a385df16c2460f63 /lib/private/legacy/OC_Util.php | |
parent | 15ff65c12fafbe1c4026fa6f734fb58fdbdcda11 (diff) |
move teardown logic to SetupManager
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 1d224ed460d..ceed79bc9d5 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -112,6 +112,7 @@ class OC_Util { } else { $setupManager->setupRoot(); } + return true; } /** @@ -264,10 +265,9 @@ class OC_Util { * @suppress PhanUndeclaredMethod */ public static function tearDownFS() { - \OC\Files\Filesystem::tearDown(); - \OC::$server->getRootFolder()->clearCache(); - self::$fsSetup = false; - self::$rootFsSetup = false; + /** @var SetupManager $setupManager */ + $setupManager = \OC::$server->get(SetupManager::class); + $setupManager->tearDown(); } /** |