summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/templates/part.list.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-21 13:07:43 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-22 15:33:54 +0100
commit1817c7895b3db5643d255ba54cf062c3f90885ed (patch)
tree2ee172b8127387e50030dc13412990c2e6fd01f1 /apps/files_trashbin/templates/part.list.php
parent1255791ef2535aac96889f6be8c8b5b163b45be6 (diff)
downloadnextcloud-server-1817c7895b3db5643d255ba54cf062c3f90885ed.tar.gz
nextcloud-server-1817c7895b3db5643d255ba54cf062c3f90885ed.zip
allow to look into deleted directories
Diffstat (limited to 'apps/files_trashbin/templates/part.list.php')
-rw-r--r--apps/files_trashbin/templates/part.list.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php
index c9a641a2e23..72359da299c 100644
--- a/apps/files_trashbin/templates/part.list.php
+++ b/apps/files_trashbin/templates/part.list.php
@@ -40,9 +40,17 @@
>
<?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?>
<?php if($file['type'] == 'dir'): ?>
- <a class="name" href="<?php $_['baseURL'].'/'.$name.'.d'.$file['timestamp']; ?>)" title="">
+ <?php if( $_['dirlisting'] ): ?>
+ <a class="name" href="<?php echo $_['baseURL'].'/'.$name; ?>" title="">
+ <?php else: ?>
+ <a class="name" href="<?php echo $_['baseURL'].'/'.$name.'.d'.$file['timestamp']; ?>" title="">
+ <?php endif; ?>
<?php else: ?>
- <a class="name" href="<?php echo $_['downloadURL'].'/'.$name.'.d'.$file['timestamp']; ?>" title="">
+ <?php if( $_['dirlisting'] ): ?>
+ <a class="name" href="<?php echo $_['downloadURL'].'/'.$name; ?>" title="">
+ <?php else: ?>
+ <a class="name" href="<?php echo $_['downloadURL'].'/'.$name.'.d'.$file['timestamp'];?>" title="">
+ <?php endif; ?>
<?php endif; ?>
<span class="nametext">
<?php if($file['type'] == 'dir'):?>
@@ -69,3 +77,4 @@
</td>
</tr>
<?php endforeach;
+ \ No newline at end of file