From 2b99ee475883fd0855ae8ac15a0aba6b16855788 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 23 Jan 2017 13:33:23 +0100 Subject: [PATCH] create /etemplates before mounting it, fixes eTemplates can not be uploaded just viewed --- filemanager/inc/class.filemanager_admin.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filemanager/inc/class.filemanager_admin.inc.php b/filemanager/inc/class.filemanager_admin.inc.php index ffc8e6fcc0..c18ae853de 100644 --- a/filemanager/inc/class.filemanager_admin.inc.php +++ b/filemanager/inc/class.filemanager_admin.inc.php @@ -95,6 +95,9 @@ class filemanager_admin extends filemanager_ui $url = 'stylite.merge://default/etemplates?merge=.&lang=0&level=1&extension=xet&url=egw'; $backup = Vfs::$is_root; Vfs::$is_root = true; + Vfs::mkdir($path); + Vfs::chgrp($path, 'Admins'); + Vfs::chown($path, 075); $msg = Vfs::mount($url, $path) ? lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path); Vfs::$is_root = $backup;