[search] target from cwd, volume or all, and MIME type can be chosen

This commit is contained in:
nao-pon
2015-05-21 23:51:42 +09:00
parent c1fe954fdd
commit a14c7faeda
10 changed files with 133 additions and 22 deletions
+1 -1
View File
@@ -659,7 +659,7 @@ class elFinderVolumeDropbox extends elFinderVolumeDriver {
if (!isset($this->cache[$raw['path']])) {
$stat = $this->updateCache($raw['path'], $stat);
}
if ($stat['mime'] !== 'directory' || $this->mimeAccepted($stat['mime'], $mimes)) {
if ($stat['mime'] !== 'directory' || $this->mimeAccepted($stat['mime'], array_merge($mimes, $this->onlyMimes))) {
$result[] = $this->stat($raw['path']);
}
}