summaryrefslogtreecommitdiffstats
path: root/lib/search
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-31 01:26:13 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-31 01:26:13 +0200
commit1564a40538a698f8f83f8482da650baf050b27d6 (patch)
treea74ec1a989a0a00cf82a34258c1ba91278f34fe4 /lib/search
parent0b44db954f4920b3816b489f3c7273fe6506c758 (diff)
downloadnextcloud-server-1564a40538a698f8f83f8482da650baf050b27d6.tar.gz
nextcloud-server-1564a40538a698f8f83f8482da650baf050b27d6.zip
dont show the full path for the files in search results
Diffstat (limited to 'lib/search')
-rw-r--r--lib/search/provider/file.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/search/provider/file.php b/lib/search/provider/file.php
index e257b82a694..f84d098dd69 100644
--- a/lib/search/provider/file.php
+++ b/lib/search/provider/file.php
@@ -6,9 +6,9 @@ class OC_Search_Provider_File extends OC_Search_Provider{
$results=array();
foreach($files as $file){
if(OC_Filesystem::is_dir($file)){
- $results[]=new OC_Search_Result(basename($file),$file,OC_Helper::linkTo( 'files', 'index.php?dir='.$file ),'Files');
+ $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'index.php?dir='.$file ),'Files');
}else{
- $results[]=new OC_Search_Result(basename($file),$file,OC_Helper::linkTo( 'files', 'download.php?file='.$file ),'Files');
+ $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php?file='.$file ),'Files');
}
}
return $results;