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 | 70be98f6d0bee928a25bd7a38b543dac02084db5 (patch) | |
tree | 44b5d0d1d8ea3afc825aaaabf6d63f9232f6d94e /lib/private/search | |
parent | c46d51473340e1a6fa1b6d1ee7a24422595a0c32 (diff) | |
download | nextcloud-server-70be98f6d0bee928a25bd7a38b543dac02084db5.tar.gz nextcloud-server-70be98f6d0bee928a25bd7a38b543dac02084db5.zip |
Add audio and image result types
Diffstat (limited to 'lib/private/search')
-rw-r--r-- | lib/private/search/provider/file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/search/provider/file.php b/lib/private/search/provider/file.php index d5f167b730c..26ebe309951 100644 --- a/lib/private/search/provider/file.php +++ b/lib/private/search/provider/file.php @@ -42,7 +42,7 @@ class File extends \OC\Search\Provider { if ($fileData['name'] === 'files' && $fileData['parent'] === -1) { continue; } - // create folder result + // create audio result if($fileData['mimepart'] === 'audio'){ $result = new \OC\Search\Result\Audio($fileData); } @@ -50,7 +50,7 @@ class File extends \OC\Search\Provider { elseif($fileData['mimepart'] === 'image'){ $result = new \OC\Search\Result\Image($fileData); } - // create audio result + // create folder result elseif($fileData['mimetype'] === 'httpd/unix-directory'){ $result = new \OC\Search\Result\Folder($fileData); } |