Make files_versions work again

Added some lines which were lost after rewrite with version 1.1.22.
This commit is contained in:
michag86 2017-03-10 09:25:22 +01:00 коммит произвёл GitHub
Родитель dca04f1f02
Коммит c72f22e180
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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) {