summaryrefslogtreecommitdiffstats
path: root/lib/search
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-09-24 19:24:20 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-09-24 19:24:20 +0200
commit1e2074b4eb966ea267df076e62c96dc7f992ce6e (patch)
tree79408c82f645d0980981030eba0b9f1a5919fdd6 /lib/search
parentecb90d72f315e965e7b0d723f6d90f71cb6214ec (diff)
downloadnextcloud-server-1e2074b4eb966ea267df076e62c96dc7f992ce6e.tar.gz
nextcloud-server-1e2074b4eb966ea267df076e62c96dc7f992ce6e.zip
use file instead of dir in search provider file fix result urls
Diffstat (limited to 'lib/search')
-rw-r--r--lib/search/provider/file.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/search/provider/file.php b/lib/search/provider/file.php
index 50e16457672..135e40667b1 100644
--- a/lib/search/provider/file.php
+++ b/lib/search/provider/file.php
@@ -15,16 +15,16 @@ class OC_Search_Provider_File extends OC_Search_Provider{
case 'audio':
break;
case 'text':
- $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('dir' => $file) ),'Text');
+ $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('file' => $file) ),'Text');
break;
case 'image':
- $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('dir' => $file) ),'Images');
+ $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('file' => $file) ),'Images');
break;
default:
if($mime=='application/xml') {
- $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('dir' => $file) ),'Text');
+ $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('file' => $file) ),'Text');
}else{
- $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('dir' => $file) ),'Files');
+ $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('file' => $file) ),'Files');
}
}
}