use p() for the output and not for the comparison

remotes/origin/stable5
Björn Schießle 12 years ago
parent 36a1bcb732
commit 52919fa94b
  1. 2
      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']); ?>'>

Loading…
Cancel
Save