From b64e336546d2af8e5acc21dffce2bfde36451218 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 12 Dec 2014 16:58:16 +0000 Subject: [PATCH] need to be root for mounting --- 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 73711c0ce6..41c27f8e6a 100644 --- a/filemanager/inc/class.filemanager_admin.inc.php +++ b/filemanager/inc/class.filemanager_admin.inc.php @@ -87,8 +87,11 @@ class filemanager_admin extends filemanager_ui { $path = '/etemplates'; $url = 'stylite.merge://default/etemplates?merge=.&lang=0&level=1&extension=xet&url=egw'; + $backup = egw_vfs::$is_root; + egw_vfs::$is_root = true; $msg = egw_vfs::mount($url, $path) ? lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path); + egw_vfs::$is_root = $backup; } elseif (egw_vfs::$is_root) {