create /etemplates before mounting it, fixes eTemplates can not be uploaded just viewed

This commit is contained in:
Ralf Becker 2017-01-23 13:33:23 +01:00
parent 2c028aa3b5
commit 2b99ee4758

View File

@ -95,6 +95,9 @@ class filemanager_admin extends filemanager_ui
$url = 'stylite.merge://default/etemplates?merge=.&lang=0&level=1&extension=xet&url=egw'; $url = 'stylite.merge://default/etemplates?merge=.&lang=0&level=1&extension=xet&url=egw';
$backup = Vfs::$is_root; $backup = Vfs::$is_root;
Vfs::$is_root = true; Vfs::$is_root = true;
Vfs::mkdir($path);
Vfs::chgrp($path, 'Admins');
Vfs::chown($path, 075);
$msg = Vfs::mount($url, $path) ? $msg = Vfs::mount($url, $path) ?
lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path); lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path);
Vfs::$is_root = $backup; Vfs::$is_root = $backup;