From d67fdd129921549b6a1e7cb5e5ebea7bdc38bf0e Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 26 Jan 2014 14:41:43 -0800 Subject: add davguest param to cut/paste link for directories in mod/filestorage --- mod/filestorage.php | 3 +-- view/tpl/attach_edit.tpl | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mod/filestorage.php b/mod/filestorage.php index 18760dd45..3e53a1e93 100644 --- a/mod/filestorage.php +++ b/mod/filestorage.php @@ -69,7 +69,6 @@ function filestorage_content(&$a) { return; } - // TODO This will also need to check for files on disk and delete them from there as well as the DB. if(argc() > 3 && argv(3) === 'delete') { if(! $perms['write_storage']) { @@ -110,7 +109,7 @@ function filestorage_content(&$a) { $channel = $a->get_channel(); - $cloudpath = get_cloudpath($f); + $cloudpath = get_cloudpath($f) . (($f['flags'] & ATTACH_FLAG_DIR) ? '?f=&davguest=1' : ''); $aclselect_e = populate_acl($f); $is_a_dir = (($f['flags'] & ATTACH_FLAG_DIR) ? true : false); diff --git a/view/tpl/attach_edit.tpl b/view/tpl/attach_edit.tpl index f9c6e96ce..77f32b5bc 100644 --- a/view/tpl/attach_edit.tpl +++ b/view/tpl/attach_edit.tpl @@ -23,12 +23,11 @@ {{else}}
{{$cpdesc}}

+{{/if}}
{{$cpldesc}}

-{{/if}} -
{{$aclselect}}
-- cgit v1.2.3