aboutsummaryrefslogtreecommitdiffstats
path: root/lib/search
diff options
context:
space:
mode:
Diffstat (limited to 'lib/search')
-rw-r--r--lib/search/provider.php2
-rw-r--r--lib/search/provider/file.php8
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/search/provider.php b/lib/search/provider.php
index f0e0ba85249..cceed8b04a3 100644
--- a/lib/search/provider.php
+++ b/lib/search/provider.php
@@ -4,7 +4,7 @@
*/
abstract class OC_Search_Provider{
public function __construct(){
- OC_SEARCH::registerProvider($this);
+ OC_Search::registerProvider($this);
}
/**
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;