summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-04-05 23:18:44 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2012-04-05 23:18:44 +0200
commit96c99125da5fe74d4a8fa329869cca7f775805cf (patch)
tree6bfb2ea45d3e0773120a5a31dd388ba3da9ca0f7 /lib/files.php
parentfe3d3be399f7b64b3f81c4f8fcd932b2d810ee45 (diff)
downloadnextcloud-server-96c99125da5fe74d4a8fa329869cca7f775805cf.tar.gz
nextcloud-server-96c99125da5fe74d4a8fa329869cca7f775805cf.zip
mimetype filter for filepicker
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/files.php b/lib/files.php
index e7bfbbc19bb..a68c29ad989 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -32,11 +32,11 @@ class OC_Files {
* get the content of a directory
* @param dir $directory
*/
- public static function getDirectoryContent($directory){
+ public static function getDirectoryContent($directory, $mimetype_filter = ''){
if(strpos($directory,OC::$CONFIG_DATADIRECTORY)===0){
$directory=substr($directory,strlen(OC::$CONFIG_DATADIRECTORY));
}
- $files=OC_FileCache::getFolderContent($directory);
+ $files=OC_FileCache::getFolderContent($directory, '', $mimetype_filter);
foreach($files as &$file){
$file['directory']=$directory;
$file['type']=($file['mimetype']=='httpd/unix-directory')?'dir':'file';