diff options
author | Andrew Brown <andrew@casabrown.com> | 2013-09-06 17:42:21 -0400 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-05 19:22:22 +0200 |
commit | c46d51473340e1a6fa1b6d1ee7a24422595a0c32 (patch) | |
tree | 9b3b424850ef89bc46688936bd1cf961feecc0ed /lib/private/search | |
parent | afd24385a8b8a9ba75e6e0e7f3c56dfe1628991b (diff) | |
download | nextcloud-server-c46d51473340e1a6fa1b6d1ee7a24422595a0c32.tar.gz nextcloud-server-c46d51473340e1a6fa1b6d1ee7a24422595a0c32.zip |
Add audio and image result types
Diffstat (limited to 'lib/private/search')
-rw-r--r-- | lib/private/search/provider/file.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/private/search/provider/file.php b/lib/private/search/provider/file.php index a9082763002..d5f167b730c 100644 --- a/lib/private/search/provider/file.php +++ b/lib/private/search/provider/file.php @@ -43,7 +43,15 @@ class File extends \OC\Search\Provider { continue; } // create folder result - if($fileData['mimetype'] === 'httpd/unix-directory'){ + if($fileData['mimepart'] === 'audio'){ + $result = new \OC\Search\Result\Audio($fileData); + } + // create image result + elseif($fileData['mimepart'] === 'image'){ + $result = new \OC\Search\Result\Image($fileData); + } + // create audio result + elseif($fileData['mimetype'] === 'httpd/unix-directory'){ $result = new \OC\Search\Result\Folder($fileData); } // or create file result |