summaryrefslogtreecommitdiffstats
path: root/lib/private/search
diff options
context:
space:
mode:
authorAndrew Brown <andrew@casabrown.com>2013-09-06 17:42:21 -0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-05 19:22:22 +0200
commit70be98f6d0bee928a25bd7a38b543dac02084db5 (patch)
tree44b5d0d1d8ea3afc825aaaabf6d63f9232f6d94e /lib/private/search
parentc46d51473340e1a6fa1b6d1ee7a24422595a0c32 (diff)
downloadnextcloud-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.php4
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);
}