summaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-04 12:01:45 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-04 12:01:45 +0100
commit52919fa94bae81125a3967a61172185df495082c (patch)
tree2489cfd73490436706fcb969d636128bd81699c1 /apps/files/templates
parent36a1bcb73251e9fade635431f29a336ccb231115 (diff)
downloadnextcloud-server-52919fa94bae81125a3967a61172185df495082c.tar.gz
nextcloud-server-52919fa94bae81125a3967a61172185df495082c.zip
use p() for the output and not for the comparison
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 50330cc4911..59267690e66 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -15,7 +15,7 @@
$directory = str_replace('%2F', '/', $directory); ?>
<tr data-id="<?php p($file['fileid']); ?>"
data-file="<?php p($name);?>"
- data-type="<?php p($file['type'] == 'dir')?'dir':'file'?>"
+ data-type="<?php ($file['type'] == 'dir')?p('dir'):p('file')?>"
data-mime="<?php p($file['mimetype'])?>"
data-size='<?php p($file['size']);?>'
data-permissions='<?php p($file['permissions']); ?>'>