From 686f3af559423656372243697c3555b95c9dcd00 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 28 Jul 2016 09:40:23 +0200 Subject: [PATCH] fix cant attach files, if none have been attached to an entry before: Sqlfs\StreamWrapper::mkdir('/apps/calendar/123',0,1) already exist! --- api/src/Vfs/Links/StreamWrapper.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/Vfs/Links/StreamWrapper.php b/api/src/Vfs/Links/StreamWrapper.php index 3f50ee83f8..62c6b44e19 100644 --- a/api/src/Vfs/Links/StreamWrapper.php +++ b/api/src/Vfs/Links/StreamWrapper.php @@ -249,8 +249,9 @@ class StreamWrapper extends LinksParent $current_is_root = Vfs::$is_root; Vfs::$is_root = true; $current_user = Vfs::$user; Vfs::$user = 0; - $ret = parent::mkdir($path,0,$options|STREAM_MKDIR_RECURSIVE); - if ($id) parent::chmod($path,0); // no other rights + $sqlfs = new parent(); + $ret = $sqlfs->mkdir($path,0,$options|STREAM_MKDIR_RECURSIVE); + if ($id) $sqlfs->chmod($path,0); // no other rights Vfs::$user = $current_user; Vfs::$is_root = $current_is_root;