diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-07-29 21:36:03 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-07-29 21:36:03 +0200 |
commit | bafd684eb694ed0bd86b46ff7cd36382c1cebc34 (patch) | |
tree | c3bb1e013d563263002d052eb41032076a36a5f9 /lib/search | |
parent | 220132ca237f5077f5145bf327e8528a652ad559 (diff) | |
download | nextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.tar.gz nextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.zip |
Renaming classes :-)
Diffstat (limited to 'lib/search')
-rw-r--r-- | lib/search/provider.php | 2 | ||||
-rw-r--r-- | lib/search/provider/file.php | 8 |
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; |