diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-04-05 23:18:44 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-04-05 23:18:44 +0200 |
commit | 96c99125da5fe74d4a8fa329869cca7f775805cf (patch) | |
tree | 6bfb2ea45d3e0773120a5a31dd388ba3da9ca0f7 /lib/files.php | |
parent | fe3d3be399f7b64b3f81c4f8fcd932b2d810ee45 (diff) | |
download | nextcloud-server-96c99125da5fe74d4a8fa329869cca7f775805cf.tar.gz nextcloud-server-96c99125da5fe74d4a8fa329869cca7f775805cf.zip |
mimetype filter for filepicker
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 4 |
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'; |