diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-07-08 15:14:25 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-07-08 15:14:25 +0200 |
commit | d699135c5e9cc56b7c3bcbb2263ffa5946b0b8b6 (patch) | |
tree | 3d4f251e8969dbc2403e68ef226017316af28d2f /apps/files_trashbin/templates/part.list.php | |
parent | 04292ff16c56d85216ddbd6f644e8055413c0170 (diff) | |
download | nextcloud-server-d699135c5e9cc56b7c3bcbb2263ffa5946b0b8b6.tar.gz nextcloud-server-d699135c5e9cc56b7c3bcbb2263ffa5946b0b8b6.zip |
fix for previews in trashbin app
Diffstat (limited to 'apps/files_trashbin/templates/part.list.php')
-rw-r--r-- | apps/files_trashbin/templates/part.list.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php index d53e38549d1..3f260867582 100644 --- a/apps/files_trashbin/templates/part.list.php +++ b/apps/files_trashbin/templates/part.list.php @@ -27,7 +27,7 @@ <?php if($file['type'] == 'dir'): ?> style="background-image:url(<?php print_unescaped(OCP\mimetype_icon('dir')); ?>)" <?php else: ?> - style="background-image:url(<?php print_unescaped(OCA\Files_Trashbin\Trashbin::preview_icon($file['name'].'.d'.$file['timestamp'])); ?>)" + style="background-image:url(<?php print_unescaped(OCA\Files_Trashbin\Trashbin::preview_icon(!$_['dirlisting'] ? ($file['name'].'.d'.$file['timestamp']) : ($file['directory'].'/'.$file['name']))); ?>)" <?php endif; ?> > <?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?> |