diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-24 10:01:01 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-24 10:05:37 -0400 |
commit | 36487246eddc87342d113de8f133f8fb910c70ad (patch) | |
tree | f073b1cc6089e8b24241995b351ebf77722d06b1 /apps/files | |
parent | cfec290ad90f8bce01f37cd0ec1f957219770aad (diff) | |
download | nextcloud-server-36487246eddc87342d113de8f133f8fb910c70ad.tar.gz nextcloud-server-36487246eddc87342d113de8f133f8fb910c70ad.zip |
Switch to using file cache ids instead of paths for file sharing
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/templates/part.list.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 6667b5488af..8faeae3939c 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -9,7 +9,7 @@ $name = str_replace('%2F','/', $name); $directory = str_replace('+','%20',urlencode($file['directory'])); $directory = str_replace('%2F','/', $directory); ?> - <tr data-file="<?php echo $name;?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mimetype']?>" data-size='<?php echo $file['size'];?>' data-permissions='<?php echo $file['permissions']; ?>'> + <tr data-id="<?php echo $file['id']; ?>" data-file="<?php echo $name;?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mimetype']?>" data-size='<?php echo $file['size'];?>' data-permissions='<?php echo $file['permissions']; ?>'> <td class="filename svg" style="background-image:url(<?php if($file['type'] == 'dir') echo OCP\mimetype_icon('dir'); else echo OCP\mimetype_icon($file['mimetype']); ?>)"> <?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" /><?php } ?> <a class="name" href="<?php if($file['type'] == 'dir') echo $_['baseURL'].$directory.'/'.$name; else echo $_['downloadURL'].$directory.'/'.$name; ?>" title=""> |