aboutsummaryrefslogtreecommitdiffstats
path: root/lib/search
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-07-29 21:36:03 +0200
committerJakob Sack <kde@jakobsack.de>2011-07-29 21:36:03 +0200
commitbafd684eb694ed0bd86b46ff7cd36382c1cebc34 (patch)
treec3bb1e013d563263002d052eb41032076a36a5f9 /lib/search
parent220132ca237f5077f5145bf327e8528a652ad559 (diff)
downloadnextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.tar.gz
nextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.zip
Renaming classes :-)
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;