aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-08 21:36:13 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-08 21:36:13 +0100
commit41a61bc637c3d60efc5abe81c39fc726fd78cd1d (patch)
tree07a1b4f9b895c3c8441a2c45356ad7e4565427ae /apps/files/templates
parent46071fed80c7375edf4788578776a6b313b6dca3 (diff)
downloadnextcloud-server-41a61bc637c3d60efc5abe81c39fc726fd78cd1d.tar.gz
nextcloud-server-41a61bc637c3d60efc5abe81c39fc726fd78cd1d.zip
fix undefined index when loading files app
Diffstat (limited to 'apps/files/templates')
-rw-r--r--apps/files/templates/part.list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php
index 4b5ac325672..9c9d9926e55 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -18,7 +18,7 @@
$name = str_replace('%2F', '/', $name);
$directory = str_replace('+', '%20', urlencode($file['directory']));
$directory = str_replace('%2F', '/', $directory); ?>
- <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']; ?>'>
+ <tr data-id="<?php echo $file['fileid']; ?>" 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="">