summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-04-03 22:17:34 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2012-04-03 22:18:03 +0200
commitcd05dfb9430da93f2584d928ef963c625562c8fa (patch)
tree2c4f36fb86002a070959d7c0cef59625fdfc788c /files
parentdd4e577f6db422aed3d528d12a8e77de9c3cfaef (diff)
downloadnextcloud-server-cd05dfb9430da93f2584d928ef963c625562c8fa.tar.gz
nextcloud-server-cd05dfb9430da93f2584d928ef963c625562c8fa.zip
adding icons to filepicker
Diffstat (limited to 'files')
-rw-r--r--files/ajax/rawlist.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/files/ajax/rawlist.php b/files/ajax/rawlist.php
index 0abe81e6725..88ba48a6c48 100644
--- a/files/ajax/rawlist.php
+++ b/files/ajax/rawlist.php
@@ -5,6 +5,7 @@ $RUNTIME_APPTYPES=array('filesystem');
// Init owncloud
require_once('../../lib/base.php');
+require_once('../../lib/template.php');
OC_JSON::checkLoggedIn();
@@ -15,6 +16,7 @@ $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
$files = array();
foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
$i["date"] = OC_Util::formatDate($i["mtime"] );
+ $i['mimetype_icon'] = $i['type'] == 'dir' ? mimetype_icon('dir'): mimetype_icon($i['mimetype']);
$files[] = $i;
}