From 8325dd845fc3538d30940053e30025ce870ffa54 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 29 Aug 2016 19:49:20 +0200 Subject: [PATCH] allow to open symlinks to directories like directories --- filemanager/inc/class.filemanager_ui.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index 9c2c8552ae..d2a084fe6b 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -345,8 +345,7 @@ class filemanager_ui 'row_id' => 'path', 'row_modified' => 'mtime', 'parent_id' => 'dir', - 'is_parent' => 'mime', - 'is_parent_value'=> Vfs::DIR_MIME_TYPE, + 'is_parent' => 'is_dir', 'favorites' => true, 'placeholder_actions' => array('mkdir','paste','file_drop_mail','file_drop_move','file_drop_copy','file_drop_symlink') ); @@ -923,6 +922,7 @@ class filemanager_ui $row['class'] .= 'noEdit '; } $row['class'] .= 'isDir '; + $row['is_dir'] = 1; } $row['download_url'] = Vfs::download_url($path); $row['gid'] = -abs($row['gid']); // gid are positive, but we use negagive account_id for groups internal @@ -1556,7 +1556,9 @@ class filemanager_ui * * @return array return array of actions */ - static function getActions_edit() { + static function getActions_edit() + { + $group = 0; $actions = array ( 'save' => array( 'caption' => 'Save',