diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-03-01 22:58:44 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-03-01 22:59:35 +0100 |
commit | d1dcd7893cb878263b8179bab16d101036c57a88 (patch) | |
tree | c2759b3d1a862fed99144d79907d9b9628671d90 /lib/search/provider | |
parent | 8c7b13db7011c8be986e9e525ca392bb13375432 (diff) | |
download | nextcloud-server-d1dcd7893cb878263b8179bab16d101036c57a88.tar.gz nextcloud-server-d1dcd7893cb878263b8179bab16d101036c57a88.zip |
Search: Change provider registration to class name, for lazy loading of search providers
Diffstat (limited to 'lib/search/provider')
-rw-r--r-- | lib/search/provider/file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/search/provider/file.php b/lib/search/provider/file.php index a37af495599..3bdb3bcd2af 100644 --- a/lib/search/provider/file.php +++ b/lib/search/provider/file.php @@ -1,7 +1,7 @@ <?php -class OC_Search_Provider_File extends OC_Search_Provider{ - function search($query){ +class OC_Search_Provider_File implements OC_Search_Provider{ + static function search($query){ $files=OC_FileCache::search($query,true); $results=array(); foreach($files as $fileData){ |