diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-24 20:50:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 20:50:02 +0300 |
commit | 9d858274099e2435f321843c299872d18ced3c2e (patch) | |
tree | 38670b28166d8bd13e53d646a0b19ce62cbeb060 | |
parent | 757127a6eca277a925c4a1ddcd06ab5e75350971 (diff) | |
parent | c72f22e18018925f4be9e007bbac0ce2fba6cc9d (diff) |
Merge pull request #27 from nextcloud/fix-for-files_versions
Make files_versions work again
-rw-r--r-- | lib/Controller/WopiController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index 561305e0..c1e3eb86 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -184,6 +184,9 @@ class WopiController extends Controller { $userFolder = $this->rootFolder->getUserFolder($res['owner']); $file = $userFolder->getById($fileId)[0]; $content = fopen('php://input', 'rb'); + // Setup the FS which is needed to emit hooks (versioning). + \OC_Util::tearDownFS(); + \OC_Util::setupFS($res['owner']); $file->putContent($content); return new JSONResponse(); } catch (\Exception $e) { |