special handling for directories

This commit is contained in:
friendica 2014-01-06 18:20:14 -08:00
parent 5a5466346c
commit e49e6c0d2a
2 changed files with 3 additions and 3 deletions

View file

@ -138,8 +138,8 @@ function filestorage_content(&$a) {
'download' => $rr['hash'],
'title' => $rr['filename'],
'size' => $rr['filesize'],
'rev' => $rr['revision']
'rev' => $rr['revision'],
'dir' => (($rr['flags'] & ATTACH_FLAG_DIR) ? true : false)
);
}
}

View file

@ -10,7 +10,7 @@
<a href="{{$baseurl}}/{{$item.id}}/edit">{{$edit}}</a> |
<a href="{{$baseurl}}/{{$item.id}}/delete">{{$delete}}</a> |
[attachment]{{$item.download}},{{$item.rev}}[/attachment] |
<a href="attach/{{$item.download}}">{{$item.title}}</a> |
{{if ! $item.dir}}<a href="attach/{{$item.download}}">{{/if}}{{$item.title}}{{if ! $item.dir}}</a>{{/if}} |
{{$item.size}} bytes
</div>