summaryrefslogtreecommitdiffstats
path: root/lib/search/provider/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/search/provider/file.php')
-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 892c431e05a..e257b82a694 100644
--- a/lib/search/provider/file.php
+++ b/lib/search/provider/file.php
@@ -2,13 +2,13 @@
class OC_Search_Provider_File extends OC_Search_Provider{
function search($query){
- $files=OC_FILESYSTEM::search($query);
+ $files=OC_Filesystem::search($query);
$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');
+ if(OC_Filesystem::is_dir($file)){
+ $results[]=new OC_Search_Result(basename($file),$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),$file,OC_Helper::linkTo( 'files', 'download.php?file='.$file ),'Files');
}
}
return $results;